mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
[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>
This commit is contained in:
co-authored by
Aditya Patwardhan
parent
00a041754b
commit
85a60f3322
@@ -86,19 +86,6 @@ jobs:
|
||||
|
||||
Get-Content $nugetPath
|
||||
|
||||
# Add workaround to unblock xUnit testing see issue: https://github.com/dotnet/sdk/issues/26462
|
||||
|
||||
$possibleDotnetLocation = "$env:ProgramFiles\dotnet"
|
||||
|
||||
$dotnetPath = if ($IsWindows) {
|
||||
if (Test-Path $possibleDotnetLocation) { $possibleDotnetLocation } else { "$env:LocalAppData\Microsoft\dotnet" }
|
||||
}
|
||||
else {
|
||||
"$env:HOME/.dotnet"
|
||||
}
|
||||
|
||||
$env:DOTNET_ROOT = $dotnetPath
|
||||
|
||||
dotnet --info
|
||||
dotnet restore
|
||||
dotnet test /property:RELEASE_VERSION=$releaseVersion --test-adapter-path:. "--logger:xunit;LogFilePath=$(System.DefaultWorkingDirectory)/test-hosting.xml"
|
||||
|
||||
Reference in New Issue
Block a user