C
C#3mo ago
alex098304

Can't Figure Out How to Generate MSIX on Publishing MAUI App

I am trying to publish my app to the Microsoft Store, and I can't seem to generate the required MSIX package. I am including the .csproj and app manifest files and applicable screenshots with this post. When I click Create, the screen indicates that a package has successfully been created and placed in my /Package folder, but this folder is never generated, and I cannot find any .MSIX files anywhere in the solutions folder. It is also strange that it creates a .NUPKG file. I have no idea why it is doing that. Note that there is only one project in my solution -- I had two, but I combined the class library into the UI project, thinking that it might help somehow after struggling with this all day. In the .csproj, I have tried setting <GenerateAppInstallerFile>True</GenerateAppInstallerFile>, but everytime I try to create the package, this setting gets reverted to False. Any help would be appreciated. This is my first time trying to generate a MSIX, so I might be making a simple mistake -- not sure.
1 Reply
alex098304
alex098304OP3mo ago
Also, here is the output from when I try to create the package:
Build started at 3:49 PM...
1>------ Build started: Project: Armory.UI, Configuration: Release Any CPU ------
1>Armory.UI -> C:\Users\Alex\source\repos\Armory\Armory.UI\bin\Release\net8.0\Armory.UI.dll
1>Armory.UI -> C:\Users\Alex\source\repos\Armory\Armory.UI\bin\Release\net8.0-windows10.0.19041.0\win10-x64\Armory.UI.dll
1>WINAPPSDKGENERATEPROJECTPRIFILE : warning : PRI249: 0xdef00520 - Invalid qualifier: SORTABLE-LIST
1>Done building project "Armory.UI.csproj".
1>C:\Program Files\dotnet\sdk\8.0.400\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Microsoft.AspNetCore.Components.DataAnnotations.Validation [3.2.0-rc1.20223.4, )" or update the version field in the nuspec.
1>C:\Program Files\dotnet\sdk\8.0.400\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Microsoft.AspNetCore.Components.DataAnnotations.Validation [3.2.0-rc1.20223.4, )" or update the version field in the nuspec.
1>The package Armory.UI.1.0.0 is missing a readme. Go to https://aka.ms/nuget/authoring-best-practices/readme to learn why package readmes are important.
1>Successfully created package 'C:\Users\Alex\source\repos\Armory\Armory.UI\bin\Release\Armory.UI.1.0.0.nupkg'.
1>Done building project "Armory.UI.csproj".
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 3:50 PM and took 01:00.962 minutes ==========
A package has been successfully built for Release (Any CPU).
========== Package: 1 succeeded, 0 failed ===========
Build started at 3:49 PM...
1>------ Build started: Project: Armory.UI, Configuration: Release Any CPU ------
1>Armory.UI -> C:\Users\Alex\source\repos\Armory\Armory.UI\bin\Release\net8.0\Armory.UI.dll
1>Armory.UI -> C:\Users\Alex\source\repos\Armory\Armory.UI\bin\Release\net8.0-windows10.0.19041.0\win10-x64\Armory.UI.dll
1>WINAPPSDKGENERATEPROJECTPRIFILE : warning : PRI249: 0xdef00520 - Invalid qualifier: SORTABLE-LIST
1>Done building project "Armory.UI.csproj".
1>C:\Program Files\dotnet\sdk\8.0.400\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Microsoft.AspNetCore.Components.DataAnnotations.Validation [3.2.0-rc1.20223.4, )" or update the version field in the nuspec.
1>C:\Program Files\dotnet\sdk\8.0.400\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Microsoft.AspNetCore.Components.DataAnnotations.Validation [3.2.0-rc1.20223.4, )" or update the version field in the nuspec.
1>The package Armory.UI.1.0.0 is missing a readme. Go to https://aka.ms/nuget/authoring-best-practices/readme to learn why package readmes are important.
1>Successfully created package 'C:\Users\Alex\source\repos\Armory\Armory.UI\bin\Release\Armory.UI.1.0.0.nupkg'.
1>Done building project "Armory.UI.csproj".
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 3:50 PM and took 01:00.962 minutes ==========
A package has been successfully built for Release (Any CPU).
========== Package: 1 succeeded, 0 failed ===========
I ended up using msbuild command after some toying around and got it to build. App is successfully in the store for my beta testers. If you're reading this in the future, no, I'm probably not smart enough to help you debug it. I just kept tinkering until it worked, and I don't know why it works compared to all the other times I tried.
Want results from more Discord servers?
Add your server