.net - How to build solution using batchfile -


i want build .net solution using batch file.

i aware need use following statement

devenv /build release "d:\source code\source\test.sln" 

but not know how create batch file execute on vs command prompt.

the visual studio command prompt loads variables , path settings. that's is, it's nothing specially, it's not different command prompt, it's same command prompt settings configured. can load same settings in own batch file including following line @ top:

call "c:\program files\microsoft visual studio 9.0\vc\vcvarsall.bat" x86 

(obviously, different versions of vs, path might change slightly)

you can replace "x86" appropriate architecture machine. permitted values are:

  • x86
  • amd64
  • x64
  • ia64
  • x86_amd64
  • x86_ia64

that said, don't think need load vars/paths need provide full path devenv.exe file. try instead:

"c:\program files\microsoft visual studio 9.0\common7\ide\devenv.exe" /build release "d:\source code\source\test.sln" 

(again, path change different versions of visual studio)


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -