msbuild - Compile VB.NET project with different #Const by running a single compile.bat file? -


i can manually (without single problem) compile vb.net code stand-alone windowsforms executable. there way command-line script? i've checked vbc, msbuild, , devenv seem unable 1 (or more) of needed steps.

  1. double-click on foo.vbproj , launch vs2005.
  2. change few of #const vars true false.
  3. hit f5 compile it.
  4. change #const original settings.
  5. exit vs2005.
  6. enjoy newly created bin\debug\foo.exe

any idea on how command-line script instead? thanks.

you define #consts @ project level, , have multiple project files: each identical having different constants - foo1.vbproj, foo2.vbproj etc. these constants can defined in project properties. use msbuild build each project.


Comments