Essential C# Preprocessor directives  Suggest an edit

Custom Preprocessors at project level

It is convenient to set custom conditional preprocessing at project level when some actions need to be skipped lets say for tests.

Go to Solution Explorer -> Click Right Mouse on project you want to set variable to -> Properties -> Build -> In General find field Conditional compilation symbols and enter your conditional variable here

Code example that will skip some code:

public void Init()
    // will skip code here

Table Of Contents
22 Enum
92 Preprocessor directives
107 Stream
108 Timers
  ↑ ↓ to navigate     ↵ to select     Esc to close