| 1 | @setlocal |
| 2 | @pushd %~dp0 |
| 3 | |
| 4 | @set _C=Debug |
| 5 | :parse_args |
| 6 | @if /i "%1"=="release" set _C=Release |
| 7 | @if not "%1"=="" shift & goto parse_args |
| 8 | |
| 9 | @echo Sql.wixext build %_C% |
| 10 | |
| 11 | :: Build |
| 12 | msbuild -Restore -p:Configuration=%_C% -tl -nologo -warnaserror || exit /b |
| 13 | |
| 14 | :: Test |
| 15 | dotnet test -c %_C% --no-build test\WixToolsetTest.Sql || exit /b |
| 16 | |
| 17 | :: Pack |
| 18 | msbuild -t:Pack -p:Configuration=%_C% -tl -nologo -warnaserror -p:NoBuild=true wixext\WixToolset.Sql.wixext.csproj || exit /b |
| 19 | |
| 20 | @popd |
| 21 | @endlocal |