I want to compile a project differently, according to a constant defined by #define, like this:
#define USE_COMPONENT_X #if USE_COMPONENT_X ... #endif
Set it in your IDE or use the the compiler command line switch i.e. -define for Mono.