title: Using compiler constants in build events
body: <p>Is there anyway to use compiler constants in Build Events in Visual Studio - VB.NET? (especially in Post-Build events)</p>
  
  <p><strong>Scenario</strong></p>
  
  <p>If <code>TEST_EDITION=TRUE</code> is defined I want to run an executable during the Post-Build event so if it's <code>FALSE</code> then I'll run something else.</p>
  
  <p>This can be used for creating different installers for different editions. </p>
  
  <p><em>P.S. Before someone suggests: No I don't want to use nant, msbuild or something like that</em></p>