diff options
Diffstat (limited to 'src/ext/ComPlus/complus.cmd')
-rw-r--r-- | src/ext/ComPlus/complus.cmd | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/ext/ComPlus/complus.cmd b/src/ext/ComPlus/complus.cmd index bea27765..67e55339 100644 --- a/src/ext/ComPlus/complus.cmd +++ b/src/ext/ComPlus/complus.cmd | |||
@@ -1,22 +1,21 @@ | |||
1 | @setlocal | 1 | @setlocal |
2 | @pushd %~dp0 | 2 | @pushd %~dp0 |
3 | @set _C=Release | ||
4 | @if /i "%1"=="debug" set _C=Debug | ||
5 | 3 | ||
6 | :: Restore | 4 | @set _C=Debug |
7 | msbuild -p:Configuration=%_C% -t:Restore || exit /b | 5 | :parse_args |
6 | @if /i "%1"=="release" set _C=Release | ||
7 | @if not "%1"=="" shift & goto parse_args | ||
8 | 8 | ||
9 | :: Build | 9 | @echo ComPlus.wixext build %_C% |
10 | ::msbuild -p:Configuration=%_C% -p:Platform=Win32 ca\complusca.vcxproj || exit /b | ||
11 | ::msbuild -p:Configuration=%_C% -p:Platform=x64 ca\complusca.vcxproj || exit /b | ||
12 | 10 | ||
13 | msbuild -p:Configuration=%_C% test\WixToolsetTest.ComPlus\WixToolsetTest.ComPlus.csproj || exit /b | 11 | :: Build |
12 | msbuild -Restore -p:Configuration=%_C% || exit /b | ||
14 | 13 | ||
15 | :: Test | 14 | :: Test |
16 | dotnet test -c %_C% --no-build test\WixToolsetTest.ComPlus || exit /b | 15 | dotnet test -c %_C% --no-build test\WixToolsetTest.ComPlus || exit /b |
17 | 16 | ||
18 | :: Pack | 17 | :: Pack |
19 | msbuild -p:Configuration=%_C% -p:NoBuild=true -t:Pack wixext\WixToolset.ComPlus.wixext.csproj || exit /b | 18 | msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true wixext\WixToolset.ComPlus.wixext.csproj || exit /b |
20 | 19 | ||
21 | @popd | 20 | @popd |
22 | @endlocal \ No newline at end of file | 21 | @endlocal \ No newline at end of file |