Home > Mobile >  .Net Maui AppInfo.Current.VersionString
.Net Maui AppInfo.Current.VersionString

Time:11-24

I am calling AppInfo.Current.VersionString on a Maui project deployed on UWP.

I am always getting back 1.0.0.1 I have tried changing

        <ApplicationDisplayVersion>2.0</ApplicationDisplayVersion>
        <ApplicationVersion>2</ApplicationVersion>

inside of the relay.csproj and I have also tried changing

<assemblyIdentity version="1.3.0.0" name="Relay.WinUI.app"/>

inside of the app.manifest inside the WinUI platform folder.

But always returning 1.0.0.1, I have also tried VersionTracking.CurrentVersion and seeing the same thing.

CodePudding user response:

You can follow the steps below to change the maui project version on UWP.

First, Please find the Package.appxmanifest file in the Platforms\Windows\Package.appxmanifest .

Second, Double click the file and you can see the options then choose the Packaging.

Last, you can see the view below and you can change the project version.

enter image description here

Here is the information about the Package version numbering.

  • Related