Skip to content

Commit b770669

Browse files
[release/v7.5] Bring Release Changes from v7.6.0-preview.6 (#26963)
1 parent 89227ac commit b770669

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

build.psm1

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2548,19 +2548,21 @@ function Start-PSBootstrap {
25482548
Write-LogGroupEnd -Title "Install Windows Dependencies"
25492549
}
25502550

2551-
if ($Scenario -in 'All', 'Tools') {
2552-
Write-LogGroupStart -Title "Install .NET Global Tools"
2553-
Write-Log -message "Installing .NET global tools"
2551+
# Ensure dotnet is available
2552+
Find-Dotnet
25542553

2555-
# Ensure dotnet is available
2556-
Find-Dotnet
2554+
if (-not $env:TF_BUILD) {
2555+
if ($Scenario -in 'All', 'Tools') {
2556+
Write-LogGroupStart -Title "Install .NET Global Tools"
2557+
Write-Log -message "Installing .NET global tools"
25572558

2558-
# Install dotnet-format
2559-
Write-Verbose -Verbose "Installing dotnet-format global tool"
2560-
Start-NativeExecution {
2561-
dotnet tool install --global dotnet-format
2559+
# Install dotnet-format
2560+
Write-Verbose -Verbose "Installing dotnet-format global tool"
2561+
Start-NativeExecution {
2562+
dotnet tool install --global dotnet-format
2563+
}
2564+
Write-LogGroupEnd -Title "Install .NET Global Tools"
25622565
}
2563-
Write-LogGroupEnd -Title "Install .NET Global Tools"
25642566
}
25652567

25662568
if ($env:TF_BUILD) {

0 commit comments

Comments
 (0)