mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Making the build file compatible with Visual Studio 2011
--HG-- branch : 1.x
This commit is contained in:
parent
82f040d9f3
commit
af4baff455
@ -2,6 +2,8 @@
|
||||
if "%WindowsSdkDir%" neq "" goto build
|
||||
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" goto initialize2k8on64
|
||||
if exist "%ProgramFiles%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" goto initialize2k8
|
||||
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" goto initialize2k8on64Dev11
|
||||
if exist "%ProgramFiles%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" goto initialize2k8Dev11
|
||||
echo "Unable to detect suitable environment. Build may not succeed."
|
||||
goto build
|
||||
|
||||
@ -14,6 +16,13 @@ goto build
|
||||
call "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
|
||||
goto build
|
||||
|
||||
:initialize2k8Dev11
|
||||
call "%ProgramFiles%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86
|
||||
goto build
|
||||
|
||||
:initialize2k8on64Dev11
|
||||
call "%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86
|
||||
goto build
|
||||
|
||||
:build
|
||||
call build
|
||||
|
@ -1,7 +1,8 @@
|
||||
|
||||
if "%WindowsSdkDir%" neq "" goto build
|
||||
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" goto initialize2k8on64
|
||||
if exist "%ProgramFiles%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" goto initialize2k8
|
||||
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" goto initialize2k8on64Dev11
|
||||
if exist "%ProgramFiles%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" goto initialize2k8Dev11
|
||||
echo "Unable to detect suitable environment. Build may not succeed."
|
||||
goto build
|
||||
|
||||
@ -14,6 +15,13 @@ goto build
|
||||
call "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
|
||||
goto build
|
||||
|
||||
:initialize2k8Dev11
|
||||
call "%ProgramFiles%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86
|
||||
goto build
|
||||
|
||||
:initialize2k8on64Dev11
|
||||
call "%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86
|
||||
goto build
|
||||
|
||||
:build
|
||||
msbuild /t:Build AzurePackage.proj
|
||||
|
Loading…
Reference in New Issue
Block a user