image

Buenas,

after the greatest hits on how get the version of an Assembly and envelope number How to obtain the version number of a ClickOnce application , today plays a little help to get an application version number of Windows 8 .

   1: string GetVersion()
   2: {
   3:     Package package = Package.Current;
   4:     PackageId packageId = package.Id;
   5:     PackageVersion version = packageId.Version;
   6:     return String.Format("{0}.{1}.{2}.{3}", version.Major, version.Minor, version.Build, version.Revision);
   7: }

Saludos @ La Finca

El Bruno

image image image

Leave a comment

Discover more from El Bruno

Subscribe now to keep reading and get access to the full archive.

Continue reading