title: Xamarin Studio: Get solution version at runtime
body: <p>Under <em>Project > Project folder settings > Main settings</em> one can define a version number.</p>
  
  <p><img src="https://i.stack.imgur.com/HAODY.png" alt="version number in main settings"></p>
  
  <p>How can I get the version number at runtime in my iOS app?</p>
  
  <p>I tried the solution posted in <a href="https://stackoverflow.com/questions/15350577/mono-monodevelop-get-solution-version-at-runtime">Mono / MonoDevelop: Get solution version at runtime</a> but I only get 0.0.0.0 despite it should be 0.1. I know you can use <code>CFBundleVersion</code> and <code>CFBundleShortVersionString</code>, but for what is this field used?</p>