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 ./PlutoFramework/PlutoFramework.csproj -f net9.0-android35.0 -c Release -p:AndroidKeyStore=true -p:AndroidSigningKeyStore={filename}.keystore -p:AndroidSigningKeyAlias={keyname} -p:AndroidSigningKeyPass={password} -p:AndroidSigningStorePass={password}

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

Last updated