Fix PowerShell/PowerShell#13201 (#16416)

This commit is contained in:
Matt Gucci
2021-11-30 11:23:42 -08:00
committed by GitHub
parent 40837dd860
commit c2966acfd5
+1 -1
View File
@@ -1855,7 +1855,7 @@ function Install-Dotnet {
else {
# dotnet-install.ps1 uses APIs that are not supported in .NET Core, so we run it with Windows PowerShell
$fullPSPath = Join-Path -Path $env:windir -ChildPath "System32\WindowsPowerShell\v1.0\powershell.exe"
$fullDotnetInstallPath = Join-Path -Path $PWD.Path -ChildPath $installScript
$fullDotnetInstallPath = Join-Path -Path (Convert-Path -Path $PWD.Path) -ChildPath $installScript
if ($Version) {
$psArgs = @('-NoLogo', '-NoProfile', '-File', $fullDotnetInstallPath, '-Version', $Version, '-Quality', $Quality)