-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cmd
More file actions
28 lines (26 loc) · 909 Bytes
/
build.cmd
File metadata and controls
28 lines (26 loc) · 909 Bytes
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
@echo off
SET config=%1
REM Set build configuration to Debug if not specified.
IF [%1]==[] (
SET config="Debug"
)
SET ver=%2
REM Extract version number from git tags if not specified.
IF [%2]==[] (
FOR /F "tokens=* USEBACKQ" %%F IN (`git describe`) DO (
SET ver=%%F
)
)
echo ################################################################################
echo ######## Building ROOTMAP.Configurator. ########
echo ################################################################################
pushd ROOTMAP.Configurator\App
call build.cmd %config% %ver%
popd
pushd ROOTMAP.Configurator\ConfigurationImporter
call build.cmd %config% %ver%
popd
pushd ROOTMAP.Configurator\SchemaValidator\ConsoleApp
dotnet build --configuration %config% -p:Version=%ver%
dotnet publish -p:Configuration=%config% -p:Version=%ver% -p:PublishTrimmed=false --runtime win-x64 --sc
popd