MSBuild的MSB4096错误的Azure与2.9.1 SDK [英] MSBuild MSB4096 error with Azure SDK 2.9.1
问题描述
因此,这里的问题:我最近升级我的开发计算机到Windows 10(8.1),那么我的Visual Studio企业2015年(从2013年)。我也升级到了Azure的SDK 2.9.1(2.4)。我重新加载扩展和更新,并很容易背负建立并在本地运行的解决方案。
So here is the issue: I have recently upgraded my development computer to Windows 10 (from 8.1), then my Visual Studio Enterprise 2015 (from 2013). I also upgraded to Azure SDK 2.9.1 (from 2.4). I reloaded the extensions and updates and was easily saddled to build and run the solution locally.
然而,这是一个不同的故事,当谈到在Azure上发布。我有一个脚本运行MSBuild的命令,该命令使用像一个魅力的工作。但现在,出现以下错误结束:
However, it is a different story when it comes to publish on Azure. I have a script to run the MSbuild command, which used to work like a charm. But it now ends with the following error:
C:\\研发\\组织\\发展\\ Project42.sln(默认目标)(1) - >
C:\\研发\\组织\\发展\\ Project42.Azure \\ Project42.Azure.ccproj.metaproj
(默认目标)(12) - >
C:\\研发\\组织\\发展\\ Project42.Azure \\ Project42.Azure.ccproj
(默认目标)(13) - >(prepareRoleItems目标) - > C:\\ PROGRAM
文件(x86)\\的MSBuild \\微软\\ VisualStudio的\\ v14.0 \\ Windows Azure的
工具\\ 2.9 \\ Microsoft.WindowsAzure.targets(1378,5):错误MSB4096:该
项目
C:\\研发\\组织\\发展\\ Project42.Admin.Web \\ Project42.Admin.Web.csproj
在项目列表ProjectReferenceWithConfiguration没有定义
元数据名称的价值。为了使用该元数据,或者
通过指定%(ProjectReferenceWithConfiguration.Name)资格,或
确保在此列表中的所有项目的元数据定义的值。
[C:\\研发\\组织\\发展\\ Project42.Azure \\ Project42.Azure.ccproj]
"C:\development\Organization\Development\Project42.sln" (default target) (1) -> "C:\development\Organization\Development\Project42.Azure\Project42.Azure.ccproj.metaproj" (default target) (12) -> "C:\development\Organization\Development\Project42.Azure\Project42.Azure.ccproj" (default target) (13) -> (PrepareRoleItems target) -> C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Windows Azure Tools\2.9\Microsoft.WindowsAzure.targets(1378,5): error MSB4096: The item "C:\development\Organization\Development\Project42.Admin.Web\Project42.Admin.Web.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. [C:\development\Organization\Development\Project42.Azure\Project42.Azure.ccproj]
我想,这个问题从升级来了,我不能把我的手指上。任何建议,以帮助解决问题
I suppose that this problem is coming from the upgrade, and I can’t put my finger on it. Any suggestion to help troubleshooting?
推荐答案
OK,我有一个解决方案,但它需要更改以下配置文件:
OK, I have a solution but it requires to change the following configuration file:
C:\\ Program Files文件(x86)的\\的MSBuild \\微软\\ VisualStudio的\\ v14.0 \\的Windows Azure工具\\ 2.9 \\ Microsoft.WindowsAzure.targets
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Windows Azure Tools\2.9\Microsoft.WindowsAzure.targets
要写入
<项目名>%(ProjectReferenceWithConfiguration.Name)LT; /项目名>
而不是
<项目名>%(名称)LT; /项目名>
在两个位置:LIGNE 1380和1395.它的伎俩
in two locations: ligne 1380 and 1395. It did the trick!
这篇关于MSBuild的MSB4096错误的Azure与2.9.1 SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!