Bug 7397 - __ANDROID__ needs to be groked by MonoDevelop C# editor
Summary: __ANDROID__ needs to be groked by MonoDevelop C# editor
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: 3.0.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Mikayla Hutchinson [MSFT]
Depends on:
Reported: 2012-09-22 10:15 UTC by t9mike
Modified: 2014-02-18 17:48 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Screenshot (48.34 KB, image/png)
2012-09-22 10:15 UTC, t9mike

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description t9mike 2012-09-22 10:15:08 UTC
Created attachment 2598 [details]

Documentation, both official on xamarin.com and various books, recommends using build-process defined __ANDROID__ symbol for #if conditional compilation. But the C# editor does not know about this symbol and this causes flaky editing and unnecessary user questions. For example:


Example of issue attached in screen shot.
Comment 1 Mikayla Hutchinson [MSFT] 2014-02-18 17:48:29 UTC
Fixed in master.