File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments