[MonoTouch] Monotouch doesn.t output the correct version nr
Karl Heinz Brehme Arredondo
karl at e-magesolutions.com
Mon Oct 17 12:20:22 EDT 2011
Also you can do that:
public static System.Version systemVersion
{
{
get
{
return new Version(NSBundle.MainBundle.ObjectForInfoDictionary
("CFBundleVersion").ToString());
}
}
}
So you can handle a .NET systemVersion variable divided on X.Y.A.B Build,
revision etc.
Karl
From: Nic Wise <nicw at fastchicken.co.nz>
Date: Mon, 17 Oct 2011 16:08:43 +0100
To: Guido Van Hoecke <guivho at gmail.com>
Cc: "monotouch at lists.ximian.com" <monotouch at lists.ximian.com>
Subject: Re: [MonoTouch] Monotouch doesn.t output the correct version nr
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
_______________________________________________
MonoTouch mailing list
MonoTouch at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111017/5425ee6a/attachment-0001.html
More information about the MonoTouch
mailing list