From fbfdb9a4531440467a457570d5a8e3c8971898d7 Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Sun, 5 Nov 2023 16:20:01 +0000 Subject: [PATCH] Use terminal logger Use the new MSBuild terminal logger. --- build.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build.ps1 b/build.ps1 index 2e4c5cbd..18a15f9e 100755 --- a/build.ps1 +++ b/build.ps1 @@ -80,7 +80,7 @@ if ($installDotNetSdk -eq $true) { Write-Host "Building solution..." -ForegroundColor Green -& $dotnet build ./ProjectEuler.sln --configuration $Configuration +& $dotnet build ./ProjectEuler.sln --configuration $Configuration --tl if ($LASTEXITCODE -ne 0) { throw "dotnet build failed with exit code $LASTEXITCODE" @@ -89,7 +89,7 @@ if ($LASTEXITCODE -ne 0) { if ($SkipTests -eq $false) { Write-Host "Running tests..." -ForegroundColor Green - $additionalArgs = @() + $additionalArgs = @("--tl") if (![string]::IsNullOrEmpty($env:GITHUB_SHA)) { $additionalArgs += "--logger" @@ -105,4 +105,3 @@ if ($SkipTests -eq $false) { } } } -