From a6c880f1e9da5bf25f84b059eb6f3c61b0e6c50d Mon Sep 17 00:00:00 2001 From: James Truher Date: Tue, 12 Apr 2022 14:46:06 -0700 Subject: [PATCH] Be sure not to clobber existing files when installing dotnet. This is the same fix as https://github.com/PowerShell/PowerShell/pull/17141 --- build.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.psm1 b/build.psm1 index 0ddb0f294..4ff8aac21 100644 --- a/build.psm1 +++ b/build.psm1 @@ -456,7 +456,7 @@ function Install-Dotnet $installScriptPath = Receive-DotnetInstallScript $installScriptName = [System.IO.Path]::GetFileName($installScriptPath) If ( $PSCmdlet.ShouldProcess("$installScriptName for $version")) { - & "${installScriptPath}" -c release -version $version + & "${installScriptPath}" -c release -version $version -SkipNonVersionedFiles } # this may be the first time that dotnet has been installed, # set up the executable variable