mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Merge tag 'v7.4.10' into release/v7.4
https://github.com/PowerShell/PowerShell/blob/master/CHANGELOG/7.4.md#7410
This commit is contained in:
@@ -85,8 +85,18 @@ jobs:
|
||||
|
||||
$toolPath = "$(System.DefaultWorkingDirectory)/toolPath/${{ parameters.globalToolExeName }}"
|
||||
|
||||
Find-Dotnet -SetDotNetRoot
|
||||
$source = (get-command -Type Application -Name dotnet | Select-Object -First 1 -ExpandProperty source)
|
||||
$target = (Get-ChildItem $source).target
|
||||
|
||||
# If we find a symbolic link for dotnet, then we need to split the filename off the target.
|
||||
if ($target) {
|
||||
Write-Verbose -Verbose "Splitting target: $target"
|
||||
$target = Split-Path $target
|
||||
}
|
||||
|
||||
Write-Verbose -Verbose "target is set as $target"
|
||||
|
||||
$env:DOTNET_ROOT = (resolve-path -Path (Join-Path (split-path $source) $target)).ProviderPath
|
||||
Write-Verbose -Verbose "DOTNET_ROOT: $env:DOTNET_ROOT"
|
||||
Get-ChildItem $env:DOTNET_ROOT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user