2015-07-10 18:55:35 +08:00
|
|
|
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
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2010-02-08 07:07:45 +08:00
|
|
|
echo "Unable to detect suitable environment. Build may not succeed."
|
|
|
|
|
2014-10-31 03:57:01 +08:00
|
|
|
:build
|
2010-02-09 03:42:53 +08:00
|
|
|
|
2014-10-31 03:57:01 +08:00
|
|
|
SET target=%1
|
|
|
|
SET project=%2
|
2012-05-05 06:32:26 +08:00
|
|
|
|
2014-10-31 03:57:01 +08:00
|
|
|
IF "%target%" == "" SET target=Build
|
|
|
|
IF "%project%" =="" SET project=Orchard.proj
|
2010-02-08 07:07:45 +08:00
|
|
|
|
2014-10-31 03:57:01 +08:00
|
|
|
msbuild /t:%target% %project%
|
2014-10-02 01:46:49 +08:00
|
|
|
|
2010-02-07 12:10:12 +08:00
|
|
|
pause
|
2010-02-08 07:07:45 +08:00
|
|
|
|