Building and cleaning Visual Studio projects from Explorer

I tend to have lots of project directories and sometimes I just want to build or clean them.

Rather than opening each solution in an instance of Visual Studio, I added items to Explorer's right-click menu. It doesn't look particularly elegant yet, but it works quite well:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\Build\Command]
@="\"c:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\msbuild.exe\" \"/maxcpucount\" \"/target:build\" \"%1\""

[HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\Clean\Command]
@="\"c:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\msbuild.exe\" \"/maxcpucount\" \"/target:clean\" \"%1\""

Comments