So our end goal is to add the ability to create a new Visual Studio Solution file under the New right click option in Explorer. The first step is to create an actual bare bones Visual Studio Solution File. So to start create a file called Visual Studio Solutions.sln on your file system. Assuming you are using Visual Studio 2005 you will want this file to have the following content:
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
EndProject
Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
The next step is to create a registry file to import this new type. I called mine vss.reg but you can name it whatever you want as long as it ends with the reg extension. The contents of this file (assuming Windows XP) are:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.sln\ShellNew]
"FileName"="Visual Studio Solution.sln"
The next step is to copy the skeleton solution file you created into the C:\Windows\ShellNew directory (note that you may have to create the ShellNew directory manually). After that is complete all you should have to do now is run the reg file you created. You should now be able to right click in Explorer and see Visual Studio Solution under your right click -> New menu (note that I've seen it where someone had to bring up the menu two times the first time to get it to show)
No comments:
Post a Comment