Orchard/ClickToBuild.cmd

34 lines
939 B
Batchfile
Raw Normal View History

FOR %%b in (
"%VS140COMNTOOLS%..\..\VC\vcvarsall.bat"
"%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
"%ProgramFiles%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
2014-10-31 03:57:01 +08:00
"%VS120COMNTOOLS%..\..\VC\vcvarsall.bat"
"%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
"%ProgramFiles%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
"%VS110COMNTOOLS%..\..\VC\vcvarsall.bat"
"%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat"
"%ProgramFiles%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat"
) do (
if exist %%b (
call %%b x86
goto build
)
)
echo "Unable to detect suitable environment. Build may not succeed."
2014-10-31 03:57:01 +08:00
:build
2014-10-31 03:57:01 +08:00
SET target=%1
SET project=%2
2014-10-31 03:57:01 +08:00
IF "%target%" == "" SET target=Build
IF "%project%" =="" SET project=Orchard.proj
2014-10-31 03:57:01 +08:00
msbuild /t:%target% %project%
2014-10-02 01:46:49 +08:00
pause