-
Notifications
You must be signed in to change notification settings - Fork 21
/
Build.Dlls.bat
44 lines (30 loc) · 1.2 KB
/
Build.Dlls.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 version=3.1.0
ECHO Parameters = %1
if [%1] NEQ [] SET version=%1
ECHO Deploying SciChart.WPF.UI DLLs v%version%
REM Setup directory structure
rmdir Build /S /Q
REM Prepare for deployment
call powershell.exe ".\DeploymentFiles\UpdateAssemblyInfoCommon.ps1" "AssemblyInfoCommon.cs" %version%
if ERRORLEVEL 1 goto :powershellError
REM Restore nuget packages
REM Set MSBUILDPATH2019=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin
call "%MSBUILDPATH2019%\msbuild.exe" -target:Restore -restore SciChart.Wpf.UI.sln -p:Configuration=Release;Platform="Any CPU";WarningLevel=0
if ERRORLEVEL 1 goto :restoreError
REM -------------------------------------------
REM Build all target frameworks
REM -------------------------------------------
call "%MSBUILDPATH2019%\msbuild.exe" -target:Build SciChart.Wpf.UI.sln -p:Configuration=Release;Platform="Any CPU";WarningLevel=0
if ERRORLEVEL 1 goto :msBuildError
Echo SUCCESS KID!
exit 0
:powershellError
echo One or more Powershell Scripts Failed
exit %ERRORLEVEL%
:restoreError
echo Failed to restore packages
exit %ERRORLEVEL%
:msBuildError
echo Failed to Build .NET
exit %ERRORLEVEL%