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
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.
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?
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