posts - 76, comments - 26, trackbacks - 0

Right-Click Goodies

Here are two of my favorite right-click goodies I use on all of my machines.

Setup

You first need to register cscript.exe as your default scripting host with Windows.  To register it with Windows, run this from a command prompt:  cscript //H:cscript

Build .csproj Files by Right-Click

Save these into an ANSI text file with a .reg extension and double click them for Windows to import these into your registry

Visual Studio 2008

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0\shell]

[HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0\shell\Build Debug]

[HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0\shell\Build Debug\command]
@="cmd.exe /k \"C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\MSBuild.exe %1 /t:build /p:Configuration=Debug\""

[HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0\shell\Build Release]

[HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0\shell\Build Release\command]
@="cmd.exe /k \"C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\MSBuild.exe %1 /t:build /p:Configuration=Release\""

[HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0\shell\Rebuild Debug]

[HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0\shell\Rebuild Debug\command]
@="cmd.exe /k \"C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\MSBuild.exe %1 /t:rebuild /p:Configuration=Debug\""

[HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0\shell\Rebuild Release]

[HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0\shell\Rebuild Release\command]
@="cmd.exe /k \"C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\MSBuild.exe %1 /t:rebuild /p:Configuration=Release\""

Visual Studio 2005

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\VisualStudio.csproj.8.0\shell]

[HKEY_CLASSES_ROOT\VisualStudio.csproj.8.0\shell\Build Debug]

[HKEY_CLASSES_ROOT\VisualStudio.csproj.8.0\shell\Build Debug\command]
@="cmd.exe /k \"C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe %1 /t:build /p:Configuration=Debug\""

[HKEY_CLASSES_ROOT\VisualStudio.csproj.8.0\shell\Build Release]

[HKEY_CLASSES_ROOT\VisualStudio.csproj.8.0\shell\Build Release\command]
@="cmd.exe /k \"C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe %1 /t:build /p:Configuration=Release\""

[HKEY_CLASSES_ROOT\VisualStudio.csproj.8.0\shell\Rebuild Debug]

[HKEY_CLASSES_ROOT\VisualStudio.csproj.8.0\shell\Rebuild Debug\command]
@="cmd.exe /k \"C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe %1 /t:rebuild /p:Configuration=Debug\""

[HKEY_CLASSES_ROOT\VisualStudio.csproj.8.0\shell\Rebuild Release]

[HKEY_CLASSES_ROOT\VisualStudio.csproj.8.0\shell\Rebuild Release\command]
@="cmd.exe /k \"C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe %1 /t:rebuild /p:Configuration=Release\""

Build .sln File by Right-Click

Same as the .csproj goodies about, but for solution files.

Visual Studio 2008

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\VisualStudio.Solution.9.0\Shell]

[HKEY_CLASSES_ROOT\VisualStudio.Solution.9.0\Shell\Build with MSBuild]

[HKEY_CLASSES_ROOT\VisualStudio.Solution.9.0\Shell\Build with MSBuild\command]
@="cmd.exe /k \"C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\MSBuild.exe %1\""
 

Visual Studio 2005

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\VisualStudio.Solution.8.0\Shell]

[HKEY_CLASSES_ROOT\VisualStudio.Solution.8.0\Shell\Build with MSBuild]

[HKEY_CLASSES_ROOT\VisualStudio.Solution.8.0\Shell\Build with MSBuild\command]
@="cmd.exe /k \"C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe %1\""

Right-Click Delete SVN Folders

This one from Jon Galloway give you a shell command to recursively delete .svn and _svn folders in the selected folder – go get it here.

Print | posted on Saturday, January 10, 2009 9:20 PM | Filed Under [ tools ]

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 6 and 5 and type the answer here:

Powered by: