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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://plutolabs.gitbook.io/plutoframework/publish-to-android.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
