-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sh
24 lines (19 loc) · 910 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
set -e
basepath=$(cd `dirname $0`; pwd)
artifacts=${basepath}/artifacts
if [[ -d ${artifacts} ]]; then
rm -rf ${artifacts}
fi
mkdir -p ${artifacts}
dotnet restore src/Es.Logging
dotnet restore src/Es.Logging.Console
dotnet restore src/Es.Logging.Log4
dotnet restore src/Es.Logging.NLog
dotnet restore src/Es.Microsoft.Log
dotnet build src/Es.Logging -f netstandard2.0 -c Release -o ${artifacts}/netstandard2.0
dotnet build src/Es.Logging.Console -f netstandard2.0 -c Release -o ${artifacts}/netstandard2.0
dotnet build src/Es.Logging.NLog -f netstandard2.0 -c Release -o ${artifacts}/netstandard2.0
dotnet build src/Es.Logging.Log4 -f netstandard2.0 -c Release -o ${artifacts}/netstandard2.0
dotnet build src/Es.Logging.Serilog -f netstandard2.0 -c Release -o ${artifacts}/netstandard2.0
dotnet build src/Es.Microsoft.Log -f netstandard2.0 -c Release -o ${artifacts}/netstandard2.0