Publish to Android

This page explains how to build your application to publish it to Google Play Console.

If you have not created a keystore yet for signing the application, do it with:

keytool -genkeypair -v -keystore {filename}.keystore -alias {keyname} -keyalg RSA -keysize 2048 -validity 10000

Then build it and sign it with the keystore using the following command:

dotnet publish ./{ProjectName}/{ProjectName}.csproj -f net9.0-android35.0 -c Release -p:AndroidKeyStore=true -p:AndroidSigningKeyStore={KeystoreName}.keystore -p:AndroidSigningKeyAlias={KeystoreName} -p:AndroidSigningKeyPass={KeystorePassword} -p:AndroidSigningStorePass={KeystorePassword}

Source: https://learn.microsoft.com/en-us/dotnet/maui/android/deployment/publish-cli?view=net-maui-9.0

Last updated