How to change the ios bundle id in vscode for maui

Tony Pitman 40 Reputation points
2024-03-27T17:21:12.47+00:00

In Visual Studio, Xamarin Forms apps the Bundle Id is changed by opening the info.plist file and selecting the Application dropdown. The Bundle Id is on that page to change.

I need to know how to do the same thing in vscode using the vscode maui extension.

[EDIT] Due to Jiale's comment: I need to know where the bundle id is kept for a MAUI project for iOS and Android. I don't care if there is a UI for it like Visual Studio. I just need to know where all to change it whether in code, files or some other place.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,870 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tony Pitman 40 Reputation points
    2024-03-29T20:40:22.5733333+00:00

    I was able to figure this out by finally finding the right documentation:

    For iOS (use the command line and project file changes as needed):

    https://learn.microsoft.com/en-us/dotnet/maui/ios/deployment/publish-cli?view=net-maui-8.0

    For Android (use the command line):

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

    This is important to my company because we use the exact same solution and project for 5 different apps. We change the imaged, Bundle ID, app name and a few other things when we build each one.

    Using Visual Studio for Mac it wasn't too bad because I would just go in to the info.plist and change things there.

    By using the command line it is actually a little bit easier because I just created shell scripts for each branded app with the correct dotnet publish parameters.

    This works really well.

    0 comments No comments