Bug 1812 - Precompiler flags not working
Summary: Precompiler flags not working
Status: RESOLVED NORESPONSE
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 1.9.2
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-11-01 12:55 UTC by Shawn Lewis
Modified: 2012-03-23 16:26 UTC (History)
3 users (show)

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

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:
Status:
RESOLVED NORESPONSE

Description Shawn Lewis 2011-11-01 12:55:37 UTC
Preprocessor flags not working correctly:

Library A: (NokNok.SDK)

(class Logging)
#if WINDOWS || MONODROID

Some code

#end if


Lubrary B: (NokNok.SDK.UPNP) references Library A

NokNok.SDK.Logging.SomeFunction

See's it in intellisence, but fails to compile saying LOGGING does not exist.


Project A and B both have DEBUG;MONODROID; as compile flags

If I remove the condition from Project A, all works fine.
Comment 1 Atsushi Eno 2011-11-04 13:37:05 UTC
I doubt there is such basic breakage. Can you please attach the actual solution that realizes your description?
Comment 2 Jonathan Pobst 2012-03-23 16:26:18 UTC
No response, cannot reproduce.

If you still get this, please reopen with a test case.

Thanks!