mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Adding ClickToBuildAzurePackage back
Signed-off-by: Sebastien Ros <sebastien.ros@microsoft.com>
This commit is contained in:
committed by
Sebastien Ros
parent
ef5b5e46ce
commit
ee1bcb497b
1
.gitignore
vendored
1
.gitignore
vendored
@@ -12,6 +12,7 @@
|
||||
[Rr]elease/
|
||||
x64/
|
||||
build/
|
||||
app.publish/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
|
||||
|
||||
32
ClickToBuildAzurePackage.cmd
Normal file
32
ClickToBuildAzurePackage.cmd
Normal file
@@ -0,0 +1,32 @@
|
||||
if "%WindowsSdkDir%" neq "" goto build
|
||||
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" goto initialize2k12on64
|
||||
if exist "%ProgramFiles%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" goto initialize2k12
|
||||
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" goto initialize2k10on64
|
||||
if exist "%ProgramFiles%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" goto initialize2k10
|
||||
echo "Unable to detect suitable environment. Build may not succeed."
|
||||
goto build
|
||||
|
||||
|
||||
:initialize2k10
|
||||
call "%ProgramFiles%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
|
||||
goto build
|
||||
|
||||
:initialize2k10on64
|
||||
call "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
|
||||
goto build
|
||||
|
||||
:initialize2k12
|
||||
call "%ProgramFiles%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86
|
||||
goto build
|
||||
|
||||
:initialize2k12on64
|
||||
call "%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86
|
||||
goto build
|
||||
|
||||
:build
|
||||
msbuild src\Orchard.Azure\Orchard.Azure.CloudService\Orchard.Azure.CloudService.ccproj /p:Configuration=Release /p:Platform="Any CPU" /t:Publish /p:OutputPath="%cd%\\" /p:outdir="%cd%\build"
|
||||
pause
|
||||
goto end
|
||||
|
||||
|
||||
:end
|
||||
Reference in New Issue
Block a user