Does MAUI dotnet build support config ApplicationId base on parameters?

xiang changan 20 Reputation points
2025-02-12T07:42:59.3633333+00:00

For MAUI we can config ApplicationId for android and iOS like below:

<ApplicationId>xxx.xxx.xxx</ApplicationId>

But for some reason, for different build like dogfood build require a different ApplicationId. So does dotnet commandline build can set this ApplicationId by command or config base on different parameter?

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2025-02-12T09:51:13.0833333+00:00

    Hello,

    No, you cannot set the AppId by command or config base on different parameter.

    Please open info.plist file on iOS, then change the AppID manually.

    From Project file properties · xamarin/xamarin-macios Wiki

    ApplicationId

    If set, specifies the CFBundleIdentifier value in the app manifest (Info.plist).

    This is a property that supports .NET "Single Project".

    See OneDotNetSingleProject for more information.

    Applicable to .NET projects (for all platforms).

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.