Back to results for “Publishing & Deployment”
.NET MAUI › Publishing & Deployment

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

Beginner

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.

Common follow-ups: What does Release enable? | What artifact does Android produce?