When your developing in a team you have so much of depended code and you just want the assembly from that other god forsaken referenced project. But do I have the assembly ? Nope but i do have the latest code.
Now the problem of opening up visual studio and waiting for the whole damn thing to load and then finally CTRL+SHIFT+B..
I guess this would be quite a common story amoung many guys developing in a team if I'm not wrong. Well this just got me writing a simple batch file when a collegue of mine mentioned that it would nice to right click and build. So if you guys wanna do that I guess this would be a simple approach ..
The Bat File.
Placethis into your visual studio 2003 (aka 7.1) Common7\Tools folder and name it BuildDebug.bat
echo off call "%VS71COMNTOOLS%\vsvars32.bat" REM Remove the error log IF EXIST error.txt del Error.txt
REM Build the solution devenv.exe /build debug /out "error.txt" %1 REM display if error exists IF EXIST error.txt type Error.txt REM Remove the error log IF EXIST error.txt del Error.txt PAUSE |
The Reg key for adding Shell extentions
You can add the file association manually and pass in the first parameter or simply just save this as a .reg file and run or manually enter the key into your registry
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\VisualStudio.Solution.7.1\Shell\Build\Command] @="\"C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Common7\\Tools\\BuildDebug.bat\" \"%1\"" |
This Blog Hosted On: http://www.DotNetJunkies.com/
Related...
http://dotnetjunkies.com/WebLog/sajay/archive/2005/02/17/54826.aspx | Comments