mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add default .NET install path for SDK validation (#25017)
This commit is contained in:
@@ -87,7 +87,16 @@ jobs:
|
||||
Get-Content $nugetPath
|
||||
|
||||
# Add workaround to unblock xUnit testing see issue: https://github.com/dotnet/sdk/issues/26462
|
||||
$dotnetPath = if ($IsWindows) { "$env:LocalAppData\Microsoft\dotnet" } else { "$env:HOME/.dotnet" }
|
||||
|
||||
$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
|
||||
|
||||
Reference in New Issue
Block a user