Create context shortcut for Visual Studio msbuild
November 17, 2008 at 11:11 pm Leave a comment
I have searched in the internet to find an easy way to rebuild my visual studio solution without open it. Then I find there is a way to update the registry to provide a context shortcut to run msbuild command by right-click on .sln file from David Mohundro’s website.
You can create a msbuild.reg file by copying the below script (which this is for .net framework 3.5), and run this reg file.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\shell\msbuild]
[HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\shell\msbuild\command]
@=”\”C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\MSBuild.exe\” /target:Rebuild \”%1\”"

Like this:
Entry filed under: Tech Share. Tags: context menu, msbuild, Visual Studio.
Trackback this post | Subscribe to the comments via RSS Feed