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-arm64Real-world example A CI job produces signed Release artifacts for each store by running dotnet publish per target framework.