Skip to content

Commit 5837d91

Browse files
Update build script bootstrappers
- Add build.ps1 - Update build.sh to enter the current directory - Remove default diagnostic verbosity on build.cmd and build.sh
1 parent 925b409 commit 5837d91

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ set DOTNET_NOLOGO=1
88
dotnet tool restore
99
@if %ERRORLEVEL% neq 0 goto :eof
1010

11-
dotnet cake --verbosity=diagnostic %*
11+
dotnet cake %*

build.ps1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
$ErrorActionPreference = 'Stop'
2+
3+
Set-Location -LiteralPath $PSScriptRoot
4+
5+
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = '1'
6+
$env:DOTNET_CLI_TELEMETRY_OPTOUT = '1'
7+
$env:DOTNET_NOLOGO = '1'
8+
9+
dotnet tool restore
10+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
11+
12+
dotnet cake build.cake @args
13+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#!/usr/bin/env bash
22
set -euox pipefail
33

4+
cd "$(dirname "${BASH_SOURCE[0]}")"
5+
46
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
57
export DOTNET_CLI_TELEMETRY_OPTOUT=1
68
export DOTNET_NOLOGO=1
79

810
dotnet tool restore
911

10-
dotnet cake --verbosity=diagnostic $@
12+
dotnet cake $@

0 commit comments

Comments
 (0)