I know that I can use preprocessor directives in C# to enable/disable compilation of some part of code.
C#
If I define a directive in the same file, it wor
In your .csproj there is a section:
TRACE;DEBUG;LINQ
If you want extra preprocessors you can add them there.
Or via the properties of the project which will add them there automatically for you. In properties under the Build tab.