Skip to content

Commit

Permalink
Switched build over to dotnet publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Whewell committed Feb 13, 2020
1 parent 30a4348 commit 6f2687a
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions Build.bat
Original file line number Diff line number Diff line change
@@ -1,31 +1,19 @@
@echo off

set MSBUILD="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe"
if not exist %MSBUILD% set MSBUILD="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild.exe"
if exist %MSBUILD% goto :BUILD

echo Cannot find msbuild.exe
exit /b 1

:BUILD
set SOLUTION="%~dp0opensky-to-basestation.sln"

echo Cleaning binaries
call "%~dp0Clean.bat"
echo.

echo Restoring NuGet packages
%MSBUILD% -t:restore %SOLUTION%
IF ERRORLEVEL 1 GOTO :ELERROR
echo.

echo Building debug configuration
%MSBUILD% -t:build -property:Configuration=Debug %SOLUTION%
dotnet publish -c Debug
IF ERRORLEVEL 1 GOTO :ELERROR
echo.

echo Building release configuration
%MSBUILD% -t:build -property:Configuration=Release %SOLUTION%
dotnet publish -c Release
IF ERRORLEVEL 1 GOTO :ELERROR
echo.

Expand Down

0 comments on commit 6f2687a

Please sign in to comment.