Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.Net Maui AppInfo.Current.VersionString

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.

like image 517
Samuel James Avatar asked Oct 24 '25 15:10

Samuel James


1 Answers

I'm finding that a clean and rebuild after setting ApplicationDisplayVersion and ApplicationVersion will enable AppInfo.Current.VersionString to retrieve the information correctly

like image 89
Slade Avatar answered Oct 26 '25 04:10

Slade



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!