0

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.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
  • 1. Right click your app -->`Properties`; 2. Switch to tab `Android` - `Manifest`; 3. You will see the Application package name just as follows, then you can modify the name of it. – Jianwei Sun - MSFT Jan 13 '23 at 06:25
  • Yes, but that changes the application identifier as well, and I want that to remain the same. – Glorfindel Jan 16 '23 at 12:54

1 Answers1

0

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

Jianwei Sun - MSFT
  • 2,289
  • 1
  • 3
  • 7