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

我只是一个虾纸丫 提交于 2019-12-04 04:37:15

问题


I am uploading a latest version of my app to the Windows store but my app is throwing the error:

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\Temp\69b5c2ab-3419-4197-839c-2ef13d218413\Resources_split.scale-100.pri: 80070490. Try again or upload a new package.

I do not understand where to even begin to look to fix this error.

has anyone else seen this error or have any inclin to what it may be?

This is also throwing a similar error when running on The Windows App Certification Kit Attached is the screenshot below:

So far I have tried:

  • Running WsReset
  • Running sfc /scannow
  • Increasing Version number of app

none of the above have worked

Could it be this msbuild error: https://developercommunity.visualstudio.com/content/problem/107928/get-merge-failure-for-shared-merged-pri-file-0x800.html?


回答1:


One workaround I have found is to get rid of the ARM configuration.

So you build with just x86|x64 instead of x86|x64|ARM obviously this doesn't help if you need to build for ARM

But I think this is a bug in a recent update to MsBuild which you can see reported by other people here: https://developercommunity.visualstudio.com/content/problem/107928/get-merge-failure-for-shared-merged-pri-file-0x800.html?




回答2:


I had almost this exact error happening to me. After digging though a month of previous commits I came across this in my csproj.

<GenerateLibraryLayout>true</GenerateLibraryLayout>

Wasn't sure when I turned that on but after I deleted that line, I repackaged my code and was able to upload my appxbundle to the windows store. Pretty frustrating how misleading the error was.




回答3:


I also had issues with similar error and disabling ARM and tweaking .csproj options did not help.

What did the trick for us unbundling, bundling and resigning the package. This was input from Microsoft support team after months of "communication".

Basically we unzipped .appxupload file and performed following commands on .appxbundle file.

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\10\bin\10.0.18362.0\x64\signtool.exe" sign /fd SHA256 /a /f "<<CERTIFICATE_LOCATION>>" <<NAME>>_rebundled.appxbundle

After this I zipped sym files and newly bundled .appxbundle to .appxupload file



来源:https://stackoverflow.com/questions/47507692/error-when-uploading-uwp-app-to-windows-store-failed-to-merge-pri-file-resourc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!