Skip to content

Commit

Permalink
Use terminal logger
Browse files Browse the repository at this point in the history
Use the new MSBuild terminal logger.
  • Loading branch information
martincostello authored Nov 5, 2023
1 parent 341fb59 commit fbfdb9a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -105,4 +105,3 @@ if ($SkipTests -eq $false) {
}
}
}

0 comments on commit fbfdb9a

Please sign in to comment.