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

 

相关文章:

  • 2022-12-23
  • 2021-06-09
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
猜你喜欢
  • 2022-02-06
  • 2021-08-20
  • 2022-02-04
  • 2021-06-27
  • 2021-11-24
  • 2021-09-06
  • 2021-12-27
相关资源
相似解决方案