forked from EWSoftware/SHFB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMasterBuild.bat
More file actions
86 lines (57 loc) · 2.93 KB
/
MasterBuild.bat
File metadata and controls
86 lines (57 loc) · 2.93 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
@ECHO OFF
REM Point SHFBROOT at the development folder so that all help files are built using the latest version of the tools.
SETLOCAL
IF EXIST "%ProgramFiles%\Microsoft Visual Studio\2022\Community\MSBuild\Current" SET "MSBUILD=%ProgramFiles%\Microsoft Visual Studio\2022\Community\MSBuild\Current\bin\MSBuild.exe"
IF EXIST "%ProgramFiles%\Microsoft Visual Studio\2022\Professional\MSBuild\Current" SET "MSBUILD=%ProgramFiles%\Microsoft Visual Studio\2022\Professional\MSBuild\Current\bin\MSBuild.exe"
IF EXIST "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current" SET "MSBUILD=%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\bin\MSBuild.exe"
IF EXIST "%ProgramFiles%\Microsoft Visual Studio\18\Community\MSBuild\Current" SET "MSBUILD=%ProgramFiles%\Microsoft Visual Studio\18\Community\MSBuild\Current\bin\MSBuild.exe"
IF EXIST "%ProgramFiles%\Microsoft Visual Studio\18\Professional\MSBuild\Current" SET "MSBUILD=%ProgramFiles%\Microsoft Visual Studio\18\Professional\MSBuild\Current\bin\MSBuild.exe"
IF EXIST "%ProgramFiles%\Microsoft Visual Studio\18\Enterprise\MSBuild\Current" SET "MSBUILD=%ProgramFiles%\Microsoft Visual Studio\18\Enterprise\MSBuild\Current\bin\MSBuild.exe"
SET SHFBROOT=%CD%\SHFB\Deploy\
SET BuildConfig=%1
IF '%BuildConfig%'=='' SET BuildConfig=Release
CD SHFB\Source
ECHO *
ECHO * Core tools
ECHO *
"%MSBUILD%" /nr:false /r /nologo /v:m /m "SandcastleTools.slnx" /t:Clean;Build "/p:Configuration=%BuildConfig%;Platform=Any CPU"
IF ERRORLEVEL 1 GOTO End
ECHO *
ECHO * VSIX package
ECHO *
"%MSBUILD%" /nr:false /r /nologo /v:m /m "SandcastleBuilderPackage.slnx" /t:Clean;Build "/p:Configuration=%BuildConfig%;Platform=Any CPU"
IF ERRORLEVEL 1 GOTO End
:BuildDocs
REM Skip help file and setup build if there is no reflection data yet
IF EXIST %SHFBROOT%\Data\.NETFramework\*.xml GOTO ReflectionDataExists
ECHO *
ECHO *
ECHO * Reflection data does not exist for the frameworks. Building default
ECHO * set for the latest version of the .NETFramework platform on this
ECHO * system. See the System Requirements and Building the Code wiki topic
ECHO * for topic for more information:
ECHO *
ECHO * https://github.com/EWSoftware/SHFB/wiki/System-Requirements-and-Building-the-Code
ECHO *
ECHO *
%SHFBROOT%ReflectionDataManager /platform:.NETFramework
IF ERRORLEVEL 1 GOTO End
:ReflectionDataExists
CD ..\..\Documentation
IF EXIST .\WebHelp\*.* RD /S /Q .\WebHelp
ECHO *
ECHO * Documentation
ECHO *
"%MSBUILD%" /nr:false /nologo /v:m /m "AllDocumentation.slnx" /t:Clean;Build "/p:Configuration=%BuildConfig%;Platform=Any CPU"
IF ERRORLEVEL 1 GOTO End
CD ..\SHFB\Source
"%MSBUILD%" /nr:false /nologo /v:m /m "SHFBSetup.slnx" /t:Clean;Build "/p:Configuration=%BuildConfig%;Platform=Any CPU"
IF ERRORLEVEL 1 GOTO End
ECHO *
ECHO * All builds completed successfully.
ECHO *
CD ..\..\NuGet
BuildNuGet.bat
CD ..
:End
ENDLOCAL