Windows8 获取应用程序版本

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);

}

posted on 2012-10-11 19:20  小二黑  阅读(77)  评论(0编辑  收藏  举报

导航