From 45e385acf5a431aa9f397ba69c7855e37a8440d4 Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Thu, 30 Nov 2023 18:20:19 +0000 Subject: [PATCH] Use MSBUILDTERMINALLOGGER Use the `MSBUILDTERMINALLOGGER` environment variable instead of specifying `--tl`. --- build.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build.ps1 b/build.ps1 index b2d1541b6..3ce36c3d8 100755 --- a/build.ps1 +++ b/build.ps1 @@ -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" @@ -69,7 +73,7 @@ if ($installDotNetSdk -eq $true) { function DotNetTest { param([string]$Project) - $additionalArgs = @("--tl") + $additionalArgs = @() if (![string]::IsNullOrEmpty($env:GITHUB_SHA)) { $additionalArgs += "--logger" @@ -86,7 +90,7 @@ function DotNetTest { function DotNetPublish { param([string]$Project) - $additionalArgs = @("--tl") + $additionalArgs = @() if (![string]::IsNullOrEmpty($Runtime)) { $additionalArgs += "--self-contained"