Browsing index pages (4 articles)
↧
How do I set a conditional compile variable?
In C/C++ you can define macros in code like this:#define OLD_WAY 1Although I've never done it, I assume that the same thing is available in C#. More to the point, in C/C++ it is possible to then do...
View ArticleAnswer by user203570 for How do I set a conditional compile variable?
Open your project properties and look at the Build page. There is a box called Conditional compilation symbols:
View ArticleAnswer by Brian R. Bondy for How do I set a conditional compile variable?
In C# you can do #define, but you can't use values on them like you can in C++. Each define can have two states: defined or undefinedIn the project properties under Build you can set defines that...
View ArticleAnswer by Glenn Slayden for How do I set a conditional compile variable?
The C# compiler csc.exe and the C# language itself do not expose any predefined constants for conditional compilation. Visual Studio only adds the DEBUG and TRACE values, which can be configured...
View Article
Browsing index pages (4 articles)