Building vs solution in command line

call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86



msbuild "%1" /p:Configuration=Release



pause

 

Building vs solution in command line解压到目录,然后运行.reg

Windows Registry Editor Version 5.00



[HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell]



[HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\buildDebug]

@="Build(Debug)"



[HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\buildDebug\command]

@="\"c:\\vsbuild_debug.bat\" \" %1 \""



[HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\bulildRelease]

@="Build(Release)"



[HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\bulildRelease\command]

@="\"c:\\vsbuild_release.bat\" \" %1 \""



[HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\Open]



[HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\Open\Command]

@="\"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\VSLauncher.exe\" \"%1\""



[HKEY_CLASSES_ROOT\VisualStudio.Launcher.csproj.10.0\Shell]



[HKEY_CLASSES_ROOT\VisualStudio.Launcher.csproj.10.0\Shell\buildDebug]

@="Build(Debug)"



[HKEY_CLASSES_ROOT\VisualStudio.Launcher.csproj.10.0\Shell\buildDebug\command]

@="\"c:\\vsbuild_debug.bat\" \" %1 \""



[HKEY_CLASSES_ROOT\VisualStudio.Launcher.csproj.10.0\Shell\bulildRelease]

@="Build(Release)"



[HKEY_CLASSES_ROOT\VisualStudio.Launcher.csproj.10.0\Shell\bulildRelease\command]

@="\"c:\\vsbuild_release.bat\" \" %1 \""



[HKEY_CLASSES_ROOT\VisualStudio.Launcher.csproj.10.0\Shell\Open]



[HKEY_CLASSES_ROOT\VisualStudio.Launcher.csproj.10.0\Shell\Open\Command]

@="\"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\VSLauncher.exe\" \"%1\""
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86



msbuild "%1" /p:Configuration=Debug



pause

 

你可能感兴趣的:(command)