I would like to add a right-click menu option in Windows Explorer for all .sln files that say "Build". You just need to call devenv to build sln without opening it first. What is the easiest way to do this?
Please note that I use Windows Vista if that matters.
Decision
I found a simple solution for Vs2008 on 32-bit windows. Create and run the .Reg file with this:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\Build (Debug)\command]
@="\"C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\devenv.com\" %1 /Build Debug"
And make sure the path to Visual Studio is correct.
source
share