microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.85k stars 326 forks source link

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

Open sudharsan-narayanan opened 3 weeks ago

sudharsan-narayanan commented 3 weeks ago

Describe the bug

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 (Package)_27.1.47.0_x86_x64.msixbundle: Failed to merge PRI file D:\SvcFab_App\PacWorkerServiceFabricType_App1\temp\5d7e5a9e-addb-49f3-8d95-81436b21f869\Resources_split.scale-100.pri: 80070490. Try again or upload a new package.

Image

By upgrading the windows SDK(1.6.240923002) in MyApp.

Note: If I use the Windows SDK(1.5.241001000) in MyApp, and upload the package in Store. Not throws an exception.

Steps to reproduce the bug

  1. Upgrade the windows SDK(1.6.240923002) in your application.
  2. Create a package and try to upload the package in Windows store.

Note: While uploading the package, you can see the error message.

Expected behavior

The package needs to upload properly in latest version

Screenshots

No response

NuGet package version

Windows App SDK 1.6.1: 1.6.240923002

Packaging type

Packaged (MSIX)

Windows version

No response

IDE

Visual Studio 2022

Additional context

No response

RDMacLachlan commented 3 weeks ago

Are you adding WinAppSDK to a UWP app? Or is the UWP part of the title incorrect?

sudharsan-narayanan commented 2 weeks ago

Are you adding WinAppSDK to a UWP app? Or is the UWP part of the title incorrect?

Sorry, I have mentioned the wrong one in title. I am using the latest WinAppSDK package in my WinUI application and uploading the package in Windows Store. But it throws the error as mentioned above.

RDMacLachlan commented 2 weeks ago

Thank you for the update on the app type, and title. Are you able to also provide us with:

CarteKiwi commented 2 weeks ago

Exact same error ! Just updated .NET SDK to 8.0.10, Visual Studio and packages in my WinUI app: WinAppSDK from 1.5.240404000 to latest (1.6.240923002)

I wasn't sure it came from WinAppSDK or VS or .NET or another updated package (as SDK.BuildTools), but you seems to confirm that it come from WinAppSDK. After downgrading to 1.5.24 again (only downgrading WinAppSDK), the Store display another error:

"Package acceptance validation error: The package InstantSub.Packager_2024.1107.2221.0_x86.msix uses an unsupported version of file makepri.exe (10.0.26100.1742)."

Could .NET 8.0.10 update be the problem here ? My app is targeting OS version 10.0.22621 (not 10.0.26100).

Thanks.

CarteKiwi commented 2 weeks ago

Ok, I got it.

Problem was the "Microsoft.Windows.SDK.BuildTools" nuget package version 10.0.26100.1742. Downgrading to 10.0.22621.3233 has fixed validation problem on the Microsoft Store.

studionexus-lk commented 1 week ago

Package acceptance validation error: We encountered a fatal error while parsing the package TTSStudio(PAK)_70.1.5.0_x86_x64.msixbundle: Failed to merge PRI file D:\SvcFab_App\PacWorkerServiceFabricType_App0\temp\47612888-ae61-4f13-ac3f-8a211f9b9679\Resources_split.scale-100.pri: 80070490. Try again or upload a new package. DeleteRetry

oh shit

studionexus-lk commented 1 week ago

Image

why this? its annoying

Scottj1s commented 1 week ago

See also: https://github.com/microsoft/WindowsAppSDK/issues/4480