title: Compile VB.NET project with different #Const by running a single compile.bat file?
body: <p>I can manually do this (without a single problem) to compile my VB.NET code into my stand-alone WindowsForms executable.  But is there a way to do this all from a command-line script?  I've checked into Vbc, MsBuild, and DevEnv but they all seem to be unable to do 1 (or more) of my needed steps.</p>
  
  <ol>
  <li>Double-click on my foo.vbproj and launch VS2005.</li>
  <li>Change a few of my #Const vars from true to false.</li>
  <li>Hit F5 to compile it.</li>
  <li>Change my #Const back to their original settings.</li>
  <li>Exit VS2005.</li>
  <li>Enjoy my newly created bin\debug\foo.exe</li>
  </ol>
  
  <p>Any idea on how to do this from a command-line script instead?
  Thanks.</p>