Finally figured out what the problem was with the failing compilation of the SharedComponents project using MSbuild: Showhow, the project was not referenced in the solution, even though Visual Studio showed it as being referenced