I'm trying to publish my .NET 8 MAUI application to the Windows Store after removing the dependency with a library (I can tackle the problem later).
The problem I face now is this error:
Packaged .NET applications with an app host exe cannot be ProcessorArchitecture neutral. Please specify a RuntimeIdentifier or a Platform other than AnyCPU.
I read a few posts:
- The RuntimeIdentifier platform 'win10-x64' and the PlatformTarget 'x64' must be compatible
- The RuntimeIdentifier platform 'win10-x64' and the PlatformTarget 'x86' must be compatible Error in MAUI
- [.NET 8 RC1] Error NETSDK1083 "The specified RuntimeIdentifier 'win10-x86' is not recognized" displays in error list after creating a WinUI project
So, I opened the Configuration Manager and added a new configuration like that
and I tried to recreate the package but with the same error. Then, I read I have to add in the project file this line
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
and this is not working; it generates a lot more errors.
The application settings looks like that
How can I fix this issue?

