From c2966acfd570a37076c28746db35a3bdcbd15412 Mon Sep 17 00:00:00 2001 From: Matt Gucci Date: Wed, 1 Dec 2021 04:23:42 +0900 Subject: [PATCH] Fix PowerShell/PowerShell#13201 (#16416) --- build.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.psm1 b/build.psm1 index 2900e1bc4f..9e9da60596 100644 --- a/build.psm1 +++ b/build.psm1 @@ -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)