title: Obtaining whether debug or release is being built in Visual Studio 2008 in WiX
body: <p>Is it possible to get hold of the flavour of the EXE file being built in the <a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Visual_Studio_2008" rel="nofollow">Visual&nbsp;Studio&nbsp;2008</a> environement?</p>
  
  <p>Basically, I wish to do the following</p>
  
  <pre><code>&lt;File Id="EventWatcher.exe" Name="EventWatcher.exe" KeyPath="yes" 
      DiskId="1" Source="..\EventWatcher\bin\$(sys.BUILDARCH)\EventWatcher.exe"&gt;
  &lt;/File&gt;
  </code></pre>
  
  <p>But instead of getting x86 for BUILDARCH I wish to get the word Release or Debug.</p>