20、uwp打包失败(All app package manifests in a bundle must declare the same values under the XPath *[local-name()='Package']/*[local-name()='Dependencies'])

在给 uwp工程打商店包的时候,遇到了一个异常:

Error info: error 80080204: All app package manifests in a bundle must declare the same values under the XPath *[local-name()='Package']/*[local-name()='Dependencies'].  The values under this XPath declared in the manifest for the package with file name "QyClient_4.0.0.0_x64.appx" and package full name "0C72C7CD.Beta_4.0.0.0_x64__atj5cpqqdhzyp" at line 11, column 4 don't match those declared in the manifest for the package with file name "QyClient_4.0.0.0_x86.appx" and package full name "0C72C7CD.Beta_4.0.0.0_x86__atj5cpqqdhzyp" at line 11, column 4. QyClient E:projectQyClient_PumaQyClientQyClientMakeAppx

0x80080204 - The specified package format is not valid: The package manifest is not valid.

在谷歌上搜了一下,看到微软论坛有人也遇到过:

https://social.msdn.microsoft.com/Forums/en-US/c0e018f2-0af3-48b6-b757-1bca908f06a1/uwpproblem-with-package-manifests?forum=wpdevelop

https://social.msdn.microsoft.com/Forums/ja-JP/f0192ada-cc54-417a-a984-5135ed3cf10e/uwp-urgent-create-app-packages-bundleartifactsuploadx86txt-not-found?forum=wpdevelop

原来是在 vs项目文件的 “生成” 中,为各个架构选中 “使用 .NET 本机工具链编译”,项目需要在 Release 环境下:

原文地址:https://www.cnblogs.com/hebeiDGL/p/7079442.html