title: How to define a constant globally in C# (like DEBUG)
body: <p>I want to compile a project differently, according to a constant defined by #define, like this:</p>
  
  <pre><code>#define USE_COMPONENT_X
  
  #if USE_COMPONENT_X
  ...
  
  #endif
  </code></pre>
  
  <p>and I can do that in C#. But when I go to another file in the same project, this constant is not defined. Can I in some way define a constant to all the project, like DEBUG is defined so?</p>