-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.cmd
39 lines (30 loc) · 909 Bytes
/
build.cmd
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
@echo off
@setlocal
set ERROR_CODE=0
dotnet restore src\Stratis.DevEx.sln
if not %ERRORLEVEL%==0 (
echo Error restoring NuGet packages for Stratis.DevEx.sln.
set ERROR_CODE=1
goto End
)
dotnet build src\Stratis.CodeAnalysis.Cs\Stratis.CodeAnalysis.Cs\Stratis.CodeAnalysis.Cs.csproj /p:Configuration=Release
if not %ERRORLEVEL%==0 (
echo Error building Roslyn analyzer.
set ERROR_CODE=2
goto End
)
dotnet build src\Stratis.CodeAnalysis.Cs\Stratis.CodeAnalysis.Cs.Package\Stratis.CodeAnalysis.Cs.Package.csproj /p:Configuration=Release
if not %ERRORLEVEL%==0 (
echo Error building Roslyn analyzer package.
set ERROR_CODE=2
goto End
)
dotnet build src\Stratis.DevEx.Gui\Stratis.DevEx.Gui.csproj /p:Configuration=Release %*
if not %ERRORLEVEL%==0 (
echo Error building Stratis DevEx GUI.
set ERROR_CODE=2
goto End
)
:End
@endlocal
exit /B %ERROR_CODE%