Custom Preprocessors at project level
suggest changeIt 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
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents