I am using my NET MAUI project properties > MAUI Shared > General > Application Display Version to set app version (example below):

However, when I call:
AppInfo.Current.Version.ToString()
On my app about page the value is always '1.0.0'.
Am I not using the correct setting?
Edit:
Actually looks like my issue was related to deployment on 'iOS Local Device'. I tested on Android emulator and seeing the correct values:
[Android Emulator]

[iOS Local Device]

I am learning testing on 'iOS Local Device' does not deploy a lot of features: splash images, icon, and looks like some app info.
Edit 2:
Filed issue on MAUI repo: https://github.com/dotnet/maui/issues/20000
According to the docs Application display version:
The application display version for a .NET MAUI app is stored in the app's project file as the
ApplicationDisplayVersionbuild property.When the value of the Application Display Version field is updated, the value of the Version field in the application view in the
Info.plistfile will be automatically updated.
And it could be a potential issue or a limitation to correctly get the value of AppInfo.Current.Version only when deploying to iOS Local Device, Android works fine. You can report it to Github:https://github.com/dotnet/maui/issues and hopefully this will be fixed soon.
Hope this clarifies a little bit!
You are in the right place, you can try to clean solution then run again. This is my illustration:


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