> For the complete documentation index, see [llms.txt](https://plutolabs.gitbook.io/plutoframework/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://plutolabs.gitbook.io/plutoframework/publish-to-android.md).

# Publish to Android

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

```
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>
