mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00

build.cmd can take an optional target name like Compile or several targets in order with quotes like "Compile,Package" clicktobuild.cmd will detect when the sdk env variable is not present, and vs2k8 is, and it will run the vs batch to initialize environment for calling msbuild --HG-- branch : dev
20 lines
370 B
Batchfile
20 lines
370 B
Batchfile
|
|
if "%WindowsSdkDir%" neq "" goto build
|
|
if exist "%ProgramFiles%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" goto initialize2k8
|
|
echo "Unable to detect suitable environment. Build may not succeed."
|
|
goto build
|
|
|
|
|
|
:initialize2k8
|
|
call "%ProgramFiles%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
|
|
goto build
|
|
|
|
|
|
:build
|
|
call build
|
|
pause
|
|
goto end
|
|
|
|
|
|
:end
|