将 UWP 应用上传到 Windows Store 时出错:无法合并 PRI 文件 \Resources_split.scale-100.pri

Error when uploading UWP app to Windows Store: Failed to merge PRI file \Resources_split.scale-100.pri

我正在将我的应用程序的最新版本上传到 Windows 商店,但我的应用程序抛出错误:

Package acceptance validation error: We encountered a fatal error while parsing the package MyApp.UWP_2.33.0.0_x86_x64_ARM_AppStore.appxbundle: Failed to merge PRI file D:\data\Tempb5c2ab-3419-4197-839c-2ef13d218413\Resources_split.scale-100.pri: 80070490. Try again or upload a new package.

我什至不知道从哪里着手修复这个错误。

有没有其他人看到这个错误或有任何倾向它可能是什么?

当 运行 在 Windows App Certification Kit 上时,这也会抛出类似的错误。附件是下面的屏幕截图:

到目前为止我已经尝试过:

以上

none 有效

可能是这个 msbuild 错误:https://developercommunity.visualstudio.com/content/problem/107928/get-merge-failure-for-shared-merged-pri-file-0x800.html?

我发现的一种解决方法是摆脱 ARM 配置。

所以您只使用 x86|x64 而不是 x86|x64|ARM 进行构建,如果您需要为 ARM

进行构建,显然这无济于事

但我认为这是 MsBuild 最近更新中的一个错误,您可以在此处看到其他人报告的错误: https://developercommunity.visualstudio.com/content/problem/107928/get-merge-failure-for-shared-merged-pri-file-0x800.html?

我几乎遇到了这个确切的错误。在挖掘了之前一个月的提交之后,我在我的 csproj 中发现了这个。

<GenerateLibraryLayout>true</GenerateLibraryLayout>

不确定我何时打开它,但在我删除该行后,我重新打包了我的代码并能够将我的 appxbundle 上传到 windows 商店。非常令人沮丧的是错误的误导性。

我也有类似错误的问题,禁用 ARM 和调整 .csproj 选项没有帮助。

我们拆包、捆绑和重新打包的诀窍是什么。 这是 "communication".

几个月后 Microsoft 支持团队的意见

基本上我们解压缩了 .appxupload 文件并对 .appxbundle 文件执行了以下命令。

makeappx.exe unbundle /v /p <<NAME>>.appxbundle /d "temp"
makeappx.exe bundle /v /p <<NAME>>_rebundled.appxbundle /d "temp"
"C:\Program Files (x86)\Windows Kits\bin.0.18362.0\x64\signtool.exe" sign /fd SHA256 /a /f "<<CERTIFICATE_LOCATION>>" <<NAME>>_rebundled.appxbundle

在此之后,我压缩了 sym 文件并将 .appxbundle 新捆绑到 .appxupload 文件