I am building a UWP application. When I open the app settings for my App, I want to display the Version number of my application in the Specifications section.
For example- In the following image, you can see the version number as 1.2.4.0 under the Specifications section in the App settings. How can I do a similar thing for my UWP application.
How can I achieve this?
See: Retrieve the Current App version from Package That's how you can display it anyway.
public string GetAppVersion()
{
Package package = Package.Current;
PackageId packageId = package.Id;
PackageVersion version = packageId.Version;
return "Version " + string.Format("{0}.{1}.{2}.{3}", version.Major, version.Minor, version.Build, version.Revision);
}