iPhone MonoTouch - Get Version of Bundle
Asked Answered
P

1

21

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

My closest guess is somewhere in :

NSBundle.MainBundle.ObjectForInfoDictionary
Parthinia answered 18/4, 2011 at 8:11 Comment(0)
I
53

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

NSBundle.MainBundle.ObjectForInfoDictionary("CFBundleVersion").ToString();
Injudicious answered 18/4, 2011 at 8:39 Comment(1)
How to access NSBundle inside a ContentPage?Grosmark

© 2022 - 2024 — McMap. All rights reserved.