Custom Preprocessors at project level

suggest change

It is convenient to set custom conditional compilation symbols at the project level when some actions need to be skipped, let's say for tests.

In Solution Explorer, right-click the project, then choose Properties and Build. Under General, find Conditional compilation symbols and enter the symbol.

This skips db.Initialize() when IGNOREREFRESHDB is defined:

public void Init()
{
    #if !IGNOREREFRESHDB
     db.Initialize();
    #endif
}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents