I have a .NET 9 MAUI Windows application.
I'm trying to publish it using the following command :
dotnet publish --framework net9.0-windows10.0.19041.0 --configuration Debug
--self-contained true --output ./publish /p:WindowsPackageType=MSIX /p:GenerateAppxPackageOnBuild=true
--runtime win-x64 -p:UseMonoRuntime=false
The command fails with this error :
failed with 3 error(s) and 1 warning(s) (1.1s)
C:\Users\user.nuget\packages\microsoft.windowsappsdk\1.7.250606001\buildTransitive\Microsoft.Build.Msix.Packaging.targets(363,5): warning : Path tomspdbcmf.execould not be found. A symbols package will not be generated. Review https://aka.ms/windowsappsdkdocs and ensure that all prerequisites for Windows App SDK development have been installed.
MakeAppx : error : You must include a valid app package manifest file named AppxManifest.xml in the source.
MakeAppx : error : Package creation failed.
MakeAppx : error : 0x80080203 - The specified package format is not valid: The file is not a valid app package because it is missing a required footprint file.
The file AppxManifest.xml exists and it's generated in the folder /obj/Debug/net9.0-windows10.0.19041.0/win-x64/MsixContent.
I have tried almost anything I could find in the internet including deleting Bin & Obj folders.
The project compiles, builds and runs successfully from Visual Studio.
However, the commands continues to fail. How can I solve that?
mspdbcmf.exewould belong to, but can you find it? Otherwise, maybe Visual Studio may need a repair.