You can define a variable on a "per project" basis as part of the project "Properties ... Build" tab. Just add your symbols to the "Conditional compilation symbols" text box.
Then just add your conditional directives:
#if _XYZZY
MessageBox.Show("Defined");
#else
MessageBox.Show("Not Defined");
#endif