-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathMasterBuild.bat
26 lines (18 loc) · 1.31 KB
/
MasterBuild.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
@ECHO OFF
CLS
RD /S /Q .\Deployment
MD .\Deployment
DEL Source\EWSPDI\bin\Release\*.nupkg
DEL Source\EWSPDIData\bin\Release\*.nupkg
DEL Source\EWSPDIWeb\bin\Release\*.nupkg
DEL Source\EWSPDIWinForms\bin\Release\*.nupkg
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"
"%MSBUILD%" /nologo /v:m /m Source\EWSPDI.sln /t:Clean;Build "/p:Configuration=Release;Platform=Any CPU"
COPY Source\EWSPDI\bin\Release\*.nupkg .\Deployment
COPY Source\EWSPDIData\bin\Release\*.nupkg .\Deployment
COPY Source\EWSPDIWeb\bin\Release\*.nupkg .\Deployment
COPY Source\EWSPDIWinForms\bin\Release\*.nupkg .\Deployment
IF NOT "%SHFBROOT%"=="" "%MSBUILD%" /nologo /v:m Doc\EWSoftwarePDI.sln /t:Clean;Build "/p:Configuration=Release;Platform=Any CPU"
IF "%SHFBROOT%"=="" ECHO **** Sandcastle help file builder not installed. Skipping help build. ****