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

Needed to detect vs2k8 environment batch file on x64 operating systems --HG-- branch : dev
25 lines
581 B
Batchfile
25 lines
581 B
Batchfile
|
|
if "%WindowsSdkDir%" neq "" goto build
|
|
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" goto initialize2k8on64
|
|
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
|
|
|
|
:initialize2k8on64
|
|
call "%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
|
|
goto build
|
|
|
|
|
|
:build
|
|
call build
|
|
pause
|
|
goto end
|
|
|
|
|
|
:end
|