[mono-android] #defines
Jonathan Pryor
jpryor at novell.com
Fri Mar 11 11:42:41 EST 2011
On Mar 8, 2011, at 1:22 AM, Chris Erickson wrote:
> As a small suggestion, for both MT and MD, it would be really nice to have come #defines setup by default on the project for MONOTOUCH and MONODROID. MS does a PocetPC #define for WM projects, and I find myself adding them for many projects I make…
A future release will #define __ANDROID__ and a set of __ANDROID_X__ constants for 1 <= X <= api-level. For example, when $(TargetFrameworkVersion) is "v1.6", then the following #defines will be present:
__ANDROID__
__ANDROID_1__
__ANDROID_2__
__ANDROID_3__
__ANDROID_4__
This will not make the next release, but the following release.
- Jon
More information about the Monodroid
mailing list