I try to replace my dedicated WinUI Version of an app with the one I published from my .net MAUI project. With this command I was able to publish an MSIX file:
dotnet publish -c Release -f:net7.0-windows10.0.22621.0
Unfortunately, when I upload it to the Parnter Center to submit it to the Windows Store I get this error:
A previous submission for this app was released with a Windows 10/11 .msixbundle or .appxbundle. Subsequent submissions must continue to contain a Windows 10/11 .msixbundle or .appxbundle.
I tried adding the MsBuild parameters I used for WinUI but without success:
/p:AppxBundlePlatforms="x86|x64|ARM64"
/p:AppxBundle=Always
/p:UapAppxPackageBuildMode=CI
How can I publish my .net MAUI project as an .msixbundle or .appxbundle?