How to Apply Conditional Compilation Symbols to Compilation
-
Thursday, June 28, 2012 5:38 PM
I can't seem to find any way to set conditional compilation symbols when creating a Compilation (CSharp.Compilation). Is this currently exposed? If so, how can I add/remove these symbols in the compilation?
Thanks,
Barry
All Replies
-
Thursday, July 05, 2012 5:40 PMAnyone? This doesn't seem like it should be very difficult. I have a set of source files, and I want to apply something like 'DEBUG' or 'RELEASE' for the preprocessor. The Project/Workspace parts of Service API seems to take these into account properly. Still after taking another look, I don't see any way to apply these directly to a compilation.
-
Thursday, July 05, 2012 9:23 PM
These are used by the parser, so they are part of the ParseOptions class that can be passed into the SyntaxTree.ParseCompilationUnit method.Wayward LINQ Lacky
- Marked As Answer by billchi_msOwner Monday, July 09, 2012 5:47 PM

