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

Viewed 1393

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:

enter image description here

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?

3 Answers

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

Related