[mono-android] Conditional compilation

Paul Johnson paul at all-the-johnsons.co.uk
Sat Feb 11 14:23:28 UTC 2012


Hi,

Are there an internal #def within monotouch and monodroid that can be 
used for conditional compilation. What I'm after is to be able to do 
something like this (very simple example)

using System;
#ifdef MONOTOUCH
using System.Drawing;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
#else
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
#endif

Thanks

Paul


More information about the Monodroid mailing list