michielpost.nl

Get the application version from the Package.appxmanifest in WinRT

11-07-2012

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.

Comments


Laci 23-08-2012
Thanks a lot! Any idea how to get the SystemName, SystemVersion, DeviceType?


LZH 15-12-2014
Is there a way to get the application version from the windows store?


Jevgenijus 26-05-2015
Thanks for solution. LZH: take a look at ApplicationData.Current.Version


So excited I found this article as it made things much quicrek! 12-11-2015
So excited I found this article as it made things much quicrek!


It's a relief to find <a href="http://iexfgnxma.com">soonmee</a> who can explain things so well 13-11-2015
It's a relief to find <a href="http://iexfgnxma.com">soonmee</a> who can explain things so well


This makes evihtyreng so completely painless. http://wskqkbcllvi.com [url=http://ujphvyfcasy.com]ujphvyfcasy[/url] [link=http://mjhlilzpyl.com]mjhlilzpyl[/link] 14-11-2015
This makes evihtyreng so completely painless. http://wskqkbcllvi.com [url=http://ujphvyfcasy.com]ujphvyfcasy[/url] [link=http://mjhlilzpyl.com]mjhlilzpyl[/link]


Suresh B 24-04-2017
Hi, How can i get the latest version available on the store for any UWP app which is running on Windows 10? BR/Suresh


07-06-2018
real money casino <a href="https://casinorealmoney2018.us.org/">online casinos</a> online casino real money | https://casinorealmoney2018.us.org/ - betfair online casino


07-06-2018
guest test post <a href=" http://temresults2018.com/ ">bbcode</a> <a href="http://temresults2018.com/">html</a> http://temresults2018.com/ simple


????? 13-06-2019
https://dancesweb.com/theking/ - ????? https://dancesweb.com/theninecasino/ - ?????? https://dancesweb.com/woori/ - ????? https://dancesweb.com/ - ?????


https://dancesweb.com/first/ 13-06-2019
https://dancesweb.com/first/ https://dancesweb.com/yesca/ https://dancesweb.com/yesno/ https://dancesweb.com/coincasino/ https://dancesweb.com/coinkore/ https://dancesweb.com/obama/ https://dancesweb.com/trump/ https://dancesweb.com/33casino/ https://dancesweb.com/gatsby/ https://dancesweb.com/bacara/ https://dancesweb.com/casino/


https://como79.com/ 13-06-2019
https://como79.com/ https://como79.com/theking/ https://como79.com/super/ https://como79.com/yescasino/ https://como79.com/yes/ https://como79.com/coincasino/ https://como79.com/coinkorea/ https://como79.com/obama/ https://como79.com/first/ https://como79.com/mcasino/ https://como79.com/trump/ https://como79.com/gatsby/ https://como79.com/theninecasino/


https://stylebet79.com/ 13-06-2019
https://stylebet79.com/ https://stylebet79.com/theking/ https://stylebet79.com/yes/ https://stylebet79.com/first/ https://stylebet79.com/obama/ https://stylebet79.com/yescasino/ https://stylebet79.com/coinka/ https://stylebet79.com/coincasino/ https://stylebet79.com/canibal/ https://stylebet79.com/4ucsno/ https://stylebet79.com/4uca/ https://stylebet79.com/theninecasino/


https://hero-wanted.com/ 13-06-2019
https://hero-wanted.com/ https://hero-wanted.com/theking/ https://hero-wanted.com/super/ https://hero-wanted.com/first/ https://hero-wanted.com/obama/ https://hero-wanted.com/yes/ https://hero-wanted.com/yescasino/ https://hero-wanted.com/4ucasino/ https://hero-wanted.com/4uca/ https://hero-wanted.com/coincasino/ https://hero-wanted.com/coin/ https://hero-wanted.com/trump/ https://hero-wanted.com/gatsby/ https://hero-wanted.com/canibal/ https://hero-wanted.com/theninecasino/


New Comment

Name
E-mail (not published)
Comment
Enter the code shown: