How to get App current version information in Android using Xamarin C#?
When you are working with the Xamarin Android application or Xamarin iOS application, May some times required a current version of application from the code. Here is the code to get App current version information in Android using Xamarin C#.
Thanks to Xamarin.Essentials reference namespace which provides VersionTracking class. The VersionTracking class lets you check the version of the application and build numbers along with seeing additional information.
Add a reference to Xamarin.Essentials in your class:
Call Track Method
Read Current Version
// Current app version (1.0.0) var currentVersion = VersionTracking.CurrentVersion;
You can update version information in Android Manifest.
Project-> Right Click -> Properties -> Android Manifest
View all Xamarin related posts: Xamarin
Read more about Version Tracking in Xamarin: Click Here
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?