How to add a new option to the context menu of the context menu of the explorer?

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.

+3
source share
2 answers

Create and run the .Reg file with this and make sure the path to Visual Studio is correct.

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"

VS2008 32- . Visual Studio Common7

  • VS2008 - Microsoft Visual Studio 9.0
  • VS2010 - Microsoft Visual Studio 10.0
  • VS2012 - Microsoft Visual Studio 13.0
  • VS2013 - Microsoft Visual Studio 12.0

64- (x64) , :

"C:\\Program Files (x86)\\Microsoft Visual Studio ??.0\\Common7\\IDE\\devenv.com\"
+4

Source: https://habr.com/ru/post/1706331/


All Articles