Advertisement
Beginner .NET MAUI, Publishing & Deployment

How do you create a release build of a MAUI app?

Short answer

Build with the Release configuration for the target framework, which enables optimizations, trimming, and (on iOS) AOT. Use dotnet publish -f -c Release to produce the platform artifact (APK/AAB, IPA, MSIX, or app bundle). Configure signing before publishing.

Save .NET MAUI mock interview
Advertisement
AModel answer
Build with the Release configuration for the target framework, which enables optimizations, trimming, and (on iOS) AOT. Use dotnet publish -f <tfm> -c Release to produce the platform artifact (APK/AAB, IPA, MSIX, or app bundle). Configure signing before publishing.
dotnet publish -f net8.0-android -c Release
dotnet publish -f net8.0-ios -c Release -p:RuntimeIdentifier=ios-arm64
Real-world example
A CI job produces signed Release artifacts for each store by running dotnet publish per target framework.
Likely follow-ups
  • What does Release enable? | What artifact does Android produce?
Related topics