On Aug 21, 2012, at 6:43 AM, Tomasz Cielecki <tom...@ostebaronen.dk> wrote:
> I've been looking at the docs for Conditional Compilation and the Symbols, 
> but for some reason it does not seem like any of the Android related Symbols 
> are defined. At least VS2010 nor VS2012 recognizes the symbols __ANDROID__ or 
> any of the level symbols __ANDROID_xx__ where xx is the API level. Is this 
> correct behavior?

I believe that You and Goncalo are not entirely understanding each other, as it 
depends upon the definition of "recognize." :-)

Specifically, the compiler or the IDE?

The __ANDROID__ and related symbols are added as part of the build process, and 
are not present in the .csproj file. Consequently, the compiler will see them 
(and behave accordingly), but the IDE will _not_, because the IDE will be 
looking at the .csproj's <DefineConstants/> values.

This is by design, at least until I know of a way to get the IDE to recognize 
symbolic constants from sources other than MSBuild $(DefineConstants).

 - Jon

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to