blob: 02db695b84a6108435ed541d4cca1469daee837c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
@setlocal
@pushd %~dp0
@set _P=%~dp0build\Release\publish
@set _C=Release
@if /i "%1"=="debug" set _C=Debug
:: Restore
msbuild -p:Configuration=%_C% -t:Restore || exit /b
:: Build
msbuild -p:Configuration=%_C% || exit /b
:: Test
dotnet test -c %_C% --no-build || exit /b
:: Pack
msbuild -p:Configuration=%_C% -p:NoBuild=true -t:Pack || exit /b
@popd
@endlocal
|