Error when uploading UWP app to Windows Store: Fai

2019-02-26 03:34发布

问题:

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.