build.ps1 319 B

12345678910111213
  1. $ErrorActionPreference = 'Stop'
  2. Set-Location -LiteralPath $PSScriptRoot
  3. $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = '1'
  4. $env:DOTNET_CLI_TELEMETRY_OPTOUT = '1'
  5. $env:DOTNET_NOLOGO = '1'
  6. dotnet tool restore
  7. if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
  8. dotnet cake @args
  9. if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }