Building a Visual Studio solution without opening Visual Studio

MS Visual studio is a real memory hog. Any developer would crib about that. I just don’t want to open one instance of the IDE for each project. This cool code which you see below is a batch file which builds the solution for you and shows the result of the same.

C:
CD \Program Files\Microsoft Visual Studio 8\VC
call vcvarsall.bat
devenv C:\projects\MySolution.sln /build
pause

Why Subversion SVN can be a pain

I was faced with a really annoying situation today. I was tempted to try Open-Source source control after a lot of VSS and TFS usage.

I tried CVS using WinCVS.

SubVersion has become famous recently and just wanted to give it a try. There’s also a pretty Windows client called TortoiseSVN Now after moving the stuff into the repository , I saw that both CVS and SVN create directories called ‘CVS’ and ‘.svn’ everywhere inside the project. Now I wanted to FTP the files to my site. But a crazy bug bit me with SVN. I saw even the damn .svn directories being moved to the site ? WTH ?

I wanted to move only the source code and not the file version information.

2007-06-09_203058.png

This blog entry came to my rescue Shell Command – Remove SVN Folders

It’s a Windows hack which adds a context menu into Windows explorer

I modified the script a bit to add CVS removal support

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
@=”Delete SVN Folders”

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]
@=”cmd.exe /c \”TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \”%1\” %%f IN (.svn) DO RD /s /q \”%%f\” \””

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteCVS]
@=”Delete CVS Folders”


[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteCVS\command]
@=”cmd.exe /c \”TITLE Removing CVS Folders in %1 && COLOR 9A && FOR /r \”%1\” %%f IN (CVS) DO RD /s /q \”%%f\” \”"

2007-06-09_204454.png

Don’t try these scripts unless you are damn sure what you are doing :D The above scripts deletes all folders named .svn and CVS in the folder inside which you call it . It will wipe off all versioning info, so better be careful