21 строка
365 B
Batchfile
21 строка
365 B
Batchfile
@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
|