I seem to be having trouble with preprocessor directives in c#. I've created a Visual Studio 2008 C# win forms app. I add this:
#if (DEBUG)
textBox1.Text = "in debug mode";
#else
textBox1.Text = "in release mode";
#endif
And when i run in debug i see the expected "in debug mode". However when i switch to Release, compile, and run the .exe, i still see the "in debug mode" text. In my project properties I have Define DEBUG constant checked. I even get the correct color-coded syntax for the code above. What gives?