Visual Studio applies (and will automatically increment) a version number when using "Create App Packages" to prepare an application for submission to the Windows Store. I'd like to show that version number in a help screen when my app is
downloaded / installed / running on a user's PC.
Before we opted to distribute the app via the Windows Store, it was originally a ClickOnce app, and the following logic worked:
if (ApplicationDeployment.IsNetworkDeployed)
VersionNumber.Content = ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString();
But now that we are using the Windows Store to distribute the app, this no longer works.
Assembly.GetExecutingAssembly().GetName().Version.ToString()
does not work either.
Does anyone know if there is an API for obtaining the version number that is updated and stamped on by "Create App Packages"?
Thanks!