ApplicationVersion and ApplicationDisplayVersion in my .csproj file are not the same as Version number and Version name in AndroidManifest.xml

Kim Strasser 1,631 Reputation points
2025-11-02T12:41:26.4166667+00:00

I have the following lines in my Android .csproj file:

  <PropertyGroup>
  ...
  <ApplicationVersion>1</ApplicationVersion>
  <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
  ...
  </PropertyGroup>

Screenshot 2025-11-02 132857

ApplicationVersion and ApplicationDisplayVersion in my .csproj file are not the same as Version number and Version name in AndroidManifest.xml. For example, I use Version number 12 and Version name 1.2 in AndroidManifest.xml.

Should ApplicationVersion be the same as Version number and ApplicationDisplayVersion the same as Version name?

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

Answer accepted by question author
  1. Michael Le (WICLOUD CORPORATION) 3,935 Reputation points Microsoft External Staff Moderator
    2025-11-03T08:58:28.6733333+00:00

    Hello Kim,

    Should ApplicationVersion be the same as Version number and ApplicationDisplayVersion the same as Version name?

    Yes, the versions in AndroidManifest.xml and .csproj should match. However, you don't need to manually update both files. The .csproj properties serve as the single source of truth for version numbers, automatically syncing across platforms.

    MAUI automatically maps .csproj version properties to platform-specific manifests:

    • ApplicationVersion → Android's android:versionCode (must be an integer)
    • ApplicationDisplayVersion → Android's android:versionName (user-visible version string)

    Update your .csproj to match your desired versions:

    <PropertyGroup>
      <ApplicationVersion>12</ApplicationVersion>
      <ApplicationDisplayVersion>1.2</ApplicationDisplayVersion>
    </PropertyGroup>
    

    I hope this clarifies your question.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Starry Night 615 Reputation points
    2025-11-03T02:02:54.5566667+00:00

    You can try to troubleshoot your problem by checking the following steps:

    1. Make sure your app has no errors.
    2. After you change the ApplicationVersion and ApplicationDisplayVersion , please rebuild your app.
    0 comments No comments

Your answer

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