forked from dnnsoftware/Dnn.Platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build_Upgrade_Package.bat
44 lines (34 loc) · 1.29 KB
/
Build_Upgrade_Package.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@echo off
set builder=%ProgramFiles(x86)%\MSBuild\15.0\Bin\MSBuild.exe
if exist "%builder%" goto build
set builder=%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe
if exist "%builder%" goto build
set builder=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe
if exist "%builder%" goto build
set builder=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe
if exist "%builder%" goto build
set builder=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe
if exist "%builder%" goto build
@echo .
@echo .-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-
@echo .
@echo . Couldn't find proper "MSBuild" to build the application
@echo . You must have VS 2015 or higher installed to build DNN.
@echo .
@echo .-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-
@echo .
goto finish
:build
@echo .
@echo .-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-
@echo .
@echo . Building application using
@echo . "%builder%"
@echo .
@echo .-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-
@echo .
.nuget\NuGet.exe restore DNN_Platform.sln
"%builder%" /t:CreateUpgrade /v:m Build/BuildScripts/DNN_Package.build
:finish
set builder=
pause