How can I specify a custom APK filename when publishing a MAUI app?

522 views Asked by At

When publishing a MAUI app for iOS, I can either use

<IpaPackageName>IPA.ipa</IpaPackageName>

in the project file or add -p:IpaPackageName=IPA.ipa to the dotnet publish command to change the filename of the distribution package. I didn't find much documentation but it's obvious once you change it in the project properties:

enter image description here

What is the equivalent setting for Android? I can't find a way in the UI to change the APK filename.

1

There are 1 answers

0
Jianwei Sun - MSFT On

In visual studio

1.Go to project Properties by right clicking the android project; Switch to tab Android - Manifest; You will see the Application package name just as follows, then you can modify the name of it.

2.Go to Android Manifest.

You said that changes the application identifier as well. It seems to be the default setting. About it, you can refer to Configure the app module.

Some relevant cases about "change the package name", you can check Is it possible to change the package name of an Android app on Google Play? and Changing the package name of an upgraded Android application