If you want to get the version of your Windows 8 / WinRT application in code, you can use this method:

public static string GetAppVersion()
{

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

}

This will ge the version from the application manifest file (Package.appxmanifest). This version is also used when submitting your application to the Windows 8 store.