Skip to content

Commit

Permalink
Use MSBUILDTERMINALLOGGER
Browse files Browse the repository at this point in the history
Use the `MSBUILDTERMINALLOGGER` environment variable instead of specifying `--tl`.
  • Loading branch information
martincostello committed Nov 30, 2023
1 parent c415f07 commit 45e385a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ param(
$ErrorActionPreference = "Stop"
$ProgressPreference = "SilentlyContinue"

if ($null -eq $env:MSBUILDTERMINALLOGGER) {
$env:MSBUILDTERMINALLOGGER = "auto"
}

$solutionPath = $PSScriptRoot
$sdkFile = Join-Path $solutionPath "global.json"

Expand Down Expand Up @@ -69,7 +73,7 @@ if ($installDotNetSdk -eq $true) {
function DotNetTest {
param([string]$Project)

$additionalArgs = @("--tl")
$additionalArgs = @()

if (![string]::IsNullOrEmpty($env:GITHUB_SHA)) {
$additionalArgs += "--logger"
Expand All @@ -86,7 +90,7 @@ function DotNetTest {
function DotNetPublish {
param([string]$Project)

$additionalArgs = @("--tl")
$additionalArgs = @()

if (![string]::IsNullOrEmpty($Runtime)) {
$additionalArgs += "--self-contained"
Expand Down

0 comments on commit 45e385a

Please sign in to comment.