由于软件包名称不匹配,MSBuild无法生成解决方案文件 [英] MSBuild does not build solution file because of mismatching package name

查看:365
本文介绍了由于软件包名称不匹配,MSBuild无法生成解决方案文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Bamboo上的MSBuild构建包含约50个解决方案的大型UWP项目.我正在面对这个问题,我真的不知道该怎么做才能解决它.该项目在Visual Studio 2017上成功构建,但在MSBuild上失败. 这是我收到的投诉.

I am trying to build a large UWP project with around 50 solutions using MSBuild on Bamboo. I'm facing this issue and I don't really know what I should do to fix it. The project is built successfully on Visual Studio 2017 but it failed on MSBuild. Here is the complaint that I received.

 MakeAppx : error : Error info: error 80080204: The package with file name "xxxxxx.ParseTestTool_1.1.5.0_x64.appx" and package full name "fd60938b-922a-40a4-84f3-19300a655ed3_1.1.5.0_x64__1npyqggg1xza8" is not valid in the bundle because it has a different package family name than other packages in the bundle. The expected package name is Nameoftheproject.NameoftheProject. [E:\Win10-Auto-Test2\builds\AV-AWDV-BP\xxxxxx-windows\src\dashboard\xxxxxx.Dashboard\xxxxxx.Dashboard.csproj]
11-Jan-2018 20:22:19      MakeAppx : error : Bundle creation failed. [E:\Win10-Auto-Test2\builds\AV-AWDV-BP\xxxxxx-windows\src\dashboard\xxxxxx.Dashboard\xxxxxx.Dashboard.csproj]
11-Jan-2018 20:22:19      MakeAppx : error : 0x80080204 - The specified package format is not valid: The package manifest is not valid. [E:\Win10-Auto-Test2\builds\AV-AWDV-BP\xxxxxxx-windows\src\dashboard\xxxxxx.yyyyyyyy\xxxxxx.yyyyyyyy.csproj]

那么,为什么解决方案构建不起作用?这是怎么了我应该在MSBuild命令行或.cjproj中修复什么?

So, why does solution building not work? What is wrong here? What should I fix in MSBuild command-line or .cjproj?

推荐答案

错误信息:错误80080204:具有文件名和包全名的包在捆绑包中无效,因为它与捆绑包中的其他包具有不同的包系列名称.

Error info: error 80080204: The package with file name and package full name is not valid in the bundle because it has a different package family name than other packages in the bundle.

根据该错误,似乎您在解决方案中添加了多个UWP项目,然后尝试创建捆绑包.如果是,您将收到此错误.

According to the error, it seems you add more than one UWP project to your solution, and then try to create a bundle. If yes, you will get this error.

要解决此问题,请打开每个项目文件,并在第一个<PropertyGroup>元素的末尾添加以下属性:

To resolve this issue, open each project file and add the following properties at the end of the first <PropertyGroup> element:

  <PropertyGroup>
    <AppxBundle>Always</AppxBundle>
  </PropertyGroup>

  <PropertyGroup>
    <AppxBundle>Never</AppxBundle>
  </PropertyGroup>

然后,从构建步骤中删除AppxBundle msbuild参数.

Then, remove the AppxBundle msbuild argument from the build step.

请参见

See the Set up automated builds for your UWP app for more detailed info.

希望这会有所帮助.

这篇关于由于软件包名称不匹配,MSBuild无法生成解决方案文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆