We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06334cc commit c28e3edCopy full SHA for c28e3ed
.pipelines/templates/release-validate-sdk.yml
@@ -87,7 +87,16 @@ jobs:
87
Get-Content $nugetPath
88
89
# Add workaround to unblock xUnit testing see issue: https://github.com/dotnet/sdk/issues/26462
90
- $dotnetPath = if ($IsWindows) { "$env:LocalAppData\Microsoft\dotnet" } else { "$env:HOME/.dotnet" }
+
91
+ $possibleDotnetLocation = "$env:ProgramFiles\dotnet"
92
93
+ $dotnetPath = if ($IsWindows) {
94
+ if (Test-Path $possibleDotnetLocation) { $possibleDotnetLocation } else { "$env:LocalAppData\Microsoft\dotnet" }
95
+ }
96
+ else {
97
+ "$env:HOME/.dotnet"
98
99
100
$env:DOTNET_ROOT = $dotnetPath
101
102
dotnet --info
0 commit comments