Skip to content

Commit ae50f0b

Browse files
committed
made a few changes to speed up local builds
1 parent ab9c69e commit ae50f0b

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

build.cmd

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
cls
44

5+
echo.
6+
echo SKIP_RESTORE=%SKIP_RESTORE% ^<^< Set to true if have already restored packages
7+
if "%SKIP_RESTORE%" == "" choice /T 5 /D Y /M "Continue?"
8+
9+
if "%SKIP_RESTORE%" == "true" goto :BUILD_NET
510
.paket\paket.bootstrapper.exe
611
if errorlevel 1 (
712
exit /b %errorlevel%
@@ -12,7 +17,17 @@ if errorlevel 1 (
1217
exit /b %errorlevel%
1318
)
1419

20+
:BUILD_NET
21+
echo.
22+
echo Fake build.fsx
1523
.\packages\FAKE\tools\Fake %*
1624

25+
if "%SKIP_RESTORE%" == "true" goto :BUILD_NETSTD
26+
echo.
27+
echo dotnet restore
1728
dotnet restore
18-
dotnet build --configuration Release --output build\netstandard1.5 --framework netstandard1.5 src\commandline
29+
30+
:BUILD_NETSTD
31+
echo.
32+
echo dotnet build
33+
dotnet build --configuration Release --output Release\netstandard1.5 --framework netstandard1.5 src\commandline

0 commit comments

Comments
 (0)