I am trying to build an Azure cloud service with multiple roles and a webAPI project on team city. The solution builds fine on VS 2013 but fails on team city with the folowing error.
[PrepareRoleItems] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Windows Azure Tools\2.5\Microsoft.WindowsAzure.targets(1326, 5): error MSB4096: The item "C:\TeamCity\buildAgent\work\96a0cadf65a06070\projWebAPI\projWebAPI.csproj" in item list "ProjectReferenceWithConfiguration" does not define a value for metadata "Name". In order to use this metadata, either qualify it by specifying %(ProjectReferenceWithConfiguration.Name), or ensure that all items in this list define a value for this metadata.
[12:22:45]
Two questions
Q1. If anyone had this problem before on team city please tell me how to solve it
Q2. If not, I am thinking of not letting team city build the sln instead make visual studio do it. Is there a way to invoke visual studio from the command line so it builds the azure cloud service sln.