Visual Studio is smart enough to pick up the build symbols and do the
correct highlighting, but only after it builds the project for the first
time. I just tested this out again on a new project, and before the first
build it highlighted the wrong part, but then once it built it switched the
highlighting around.

On Wed, Aug 22, 2012 at 1:16 PM, Goncalo Oliveira <gonc...@minkan.net>wrote:

> I'm defining "correctly identified" by the IDE as correctly highlighted.
> I'm attaching a screenshot.
>
> I had this behavior with 4.2.2 and it's the same with 4.2.4 update.
>
>
> On 22 August 2012 15:56, Jonathan Pryor <j...@xamarin.com> wrote:
>
>> On Aug 22, 2012, at 5:34 AM, Goncalo Oliveira <gonc...@minkan.net> wrote:
>> > Specifically I meant both the compiler and the IDE.
>> >
>> > the .csproj does not define them
>> >
>> <DefineConstants>TRACE;DEBUG;SQLITE_ENABLE_COLUMN_METADATA</DefineConstants>
>> >
>> > and yet this is correctly identified by the IDE
>> >
>> > #if __ANDROID__
>> >             int u = 1;
>> >             u++;
>> > #endif
>>
>> How are we defining "correctly identified"? As in syntax coloring? If so,
>> refer to the previous email on the subject which contains an actual Visual
>> Studio screenshot which shows that the code within __ANDROID__ and
>> __ANDROID_8__ are "grayed out", i.e. "not defined" (even though they
>> clearly should be):
>>
>>
>> http://lists.ximian.com/pipermail/monodroid/attachments/20120821/e4e3010e/attachment-0001.png
>>
>> Within VS2012, I see the same behavior: code within a `#if __ANDROID__`
>> block is "grayed out." I would consider this as the IDE _not_ "correctly
>> identifying" the defines, but (as stated earlier) I don't know how to get
>> the IDE on the same page as the compiler...
>>
>> MonoDevelop 3.0.4.4 behaves the same: code within a `#if __ANDROID__`
>> block is "grayed out", and code completion is ~non-existent.
>>
>>  - Jon
>>
>> _______________________________________________
>> Monodroid mailing list
>> Monodroid@lists.ximian.com
>>
>> UNSUBSCRIBE INFORMATION:
>> http://lists.ximian.com/mailman/listinfo/monodroid
>>
>
>
>
> --
> Gonçalo Oliveira
>
> _______________________________________________
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

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

Reply via email to