[MonoTouch] Monotouch doesn.t output the correct version nr
Nic Wise
nicw at fastchicken.co.nz
Mon Oct 17 11:08:43 EDT 2011
You set the app/bundle version separate to the assembly version. It's
on one of the iPhone-specific tabs in the csproj properties.
Also, if you want to get the app version out (the one a user would
see), you need to use:
public static string AppVersion
{
get
{
return
NSBundle.MainBundle.ObjectForInfoDictionary("CFBundleVersion").ToString();
}
}
On Mon, Oct 17, 2011 at 15:55, Guido Van Hoecke <guivho at gmail.com> wrote:
> When I set a version number (I use 2.3 in this example) it is not
> copied into the app. The app version always seems to be 1.0
>
> I created a tiny project to demonstrate the problem.
> I started with an 'Empty Project'.
> I just set the solution version to '2.3', and leave the project
> version to copy it from the solution.
> I just created a label with the version number, add it to a new view
> and add that to the window.
> The version number displayed is '1.0'!
>
> The .sln and .csproj xml files have this value '2.3', but the
> Info.plist in the resulting app has '1.0' as BundleVersion!
> There is not a single key in the Info.plist (the one inside the .app)
> that has this '2.3' value!
>
> Did I miss something here?
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
--
Nic Wise
t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
More information about the MonoTouch
mailing list