【发布时间】:2016-01-15 23:51:09
【问题描述】:
我正在尝试在团队城市上构建具有多个角色和 webAPI 项目的 Azure 云服务。该解决方案在 VS 2013 上构建良好,但在团队城市上失败并出现以下错误。
[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]
两个问题
第一季度。如果有人之前在团队城市遇到过这个问题,请告诉我如何解决它
第二季度。如果没有,我正在考虑不让团队城市建立 sln 而是让视觉工作室来做。有没有办法从命令行调用 Visual Studio 来构建 Azure 云服务 sln。
【问题讨论】:
-
我想通了。这是 MSBuild 乱序构建的东西。这个article 很好地描述了问题和解决方案。
标签: visual-studio azure msbuild teamcity