C# Preprocessor Directives linked to solution configuration
c#, visual-studio-2010
Solution
In Properties->Build->Conditional compilation symbols. Define your directives and use in preprocessor conditionals.
Problem
In Visual Studio I can manually define a directive for debug using ``` #define DEBUG // ... #if DEBUG Console.WriteLine("Debug version"); #else Console.WriteLine("Release version"); #endif ``` Is there a way to link this to the solution configuration so when I select Debug/Release or a custom configuration it will auto define?