Slide 17 of this might help http://www.slideshare.net/Xamarin/crossplatform-mobile-development-12658651
(and Greg's book) On Fri, Jun 1, 2012 at 10:07 AM, AnthonyLambert <[email protected]> wrote: > > Is there a way of at runtime (or compile time) telling what system the code > is running on? > > I have some code which will run on Windows X86, Ios, Mac, Android.... I want > to where possible build code that will run on all these platforms. Sometimes > somecode will need to be conditional so it there a runtime API I can call > that tells me what the platform is? > > I know at compile time I could set my own #defines like DEBUG and TRACE but > I am sharing csprojs across platform so I would have to keep editing them. > > Any ideas? > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Runtime-system-identification-tp4655153.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > 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/ Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com 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 [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
