blob: 6253c5a73247611768b21b74c227a1d7f6e15d02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
@setlocal
@pushd %~dp0
@set _C=Debug
:parse_args
@if /i "%1"=="release" set _C=Release
@if not "%1"=="" shift & goto parse_args
@echo Building ext\Util %_C% using %_N%
:: Restore
nuget restore dnchost\packages.config || exit /b
msbuild -t:Restore -p:Configuration=%_C% || exit /b
:: Build
msbuild -p:Configuration=%_C%;Platform=x86 dnchost\dnchost.vcxproj || exit /b
msbuild -p:Configuration=%_C%;Platform=x64 dnchost\dnchost.vcxproj || exit /b
msbuild -p:Configuration=%_C%;Platform=ARM64 dnchost\dnchost.vcxproj || exit /b
msbuild -p:Configuration=%_C%;Platform=x86 mbahost\mbahost.vcxproj || exit /b
msbuild -p:Configuration=%_C%;Platform=x64 mbahost\mbahost.vcxproj || exit /b
msbuild -p:Configuration=%_C%;Platform=ARM64 mbahost\mbahost.vcxproj || exit /b
msbuild -p:Configuration=%_C% || exit /b
msbuild -p:Configuration=%_C% test\examples\examples.proj || exit /b
:: Test
dotnet test -c %_C% --no-build test\WixToolsetTest.Bal || exit /b
dotnet test -c %_C% --no-build test\WixToolsetTest.ManagedHost || exit /b
:: Pack
msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true wixext\WixToolset.Bal.wixext.csproj || exit /b
msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true WixToolset.Mba.Host\WixToolset.Mba.Host.csproj || exit /b
@popd
@endlocal
|