[#WINDOWS8] HowTo: Obtain the Windows 8 application version number



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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: