21

In MonoTouch, how can we get the version of the bundle currently running?

My closest guess is somewhere in :

NSBundle.MainBundle.ObjectForInfoDictionary
Ian Vink
  • 66,960
  • 104
  • 341
  • 555

1 Answers1

53

Use the following code to get the current version of the bundle:

NSBundle.MainBundle.ObjectForInfoDictionary("CFBundleVersion").ToString();
Ahmad Kayyali
  • 8,233
  • 13
  • 49
  • 83