Skip to content

Commit 85a60f3

Browse files
[release/v7.5] Fix the expected path of .NET after using UseDotnet 2 task to install (#25425)
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
1 parent 00a0417 commit 85a60f3

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

.pipelines/templates/release-validate-sdk.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,6 @@ jobs:
8686
8787
Get-Content $nugetPath
8888
89-
# Add workaround to unblock xUnit testing see issue: https://github.com/dotnet/sdk/issues/26462
90-
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-
10289
dotnet --info
10390
dotnet restore
10491
dotnet test /property:RELEASE_VERSION=$releaseVersion --test-adapter-path:. "--logger:xunit;LogFilePath=$(System.DefaultWorkingDirectory)/test-hosting.xml"

0 commit comments

Comments
 (0)