Skip to content

Commit 9b731e9

Browse files
authored
.NET install script workaround (#4194)
1 parent 14ba9b2 commit 9b731e9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

eng/common/Install-DotNetSdk.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,14 @@ if (!(Test-Path $DotnetInstallScriptPath)) {
4040
& "$PSScriptRoot/Invoke-WithRetry.ps1" "Invoke-WebRequest 'https://dot.net/v1/$DotnetInstallScript' -OutFile $DotnetInstallScriptPath"
4141
}
4242

43-
$DotnetChannel = "Current"
44-
4543
$InstallFailed = $false
4644
if ($IsRunningOnUnix) {
4745
& chmod +x $DotnetInstallScriptPath
48-
& $DotnetInstallScriptPath --channel $DotnetChannel --version "latest" --install-dir $InstallPath
46+
& $DotnetInstallScriptPath --version "latest" --install-dir $InstallPath
4947
$InstallFailed = ($LASTEXITCODE -ne 0)
5048
}
5149
else {
52-
& $DotnetInstallScriptPath -Channel $DotnetChannel -Version "latest" -InstallDir $InstallPath
50+
& $DotnetInstallScriptPath -Version "latest" -InstallDir $InstallPath
5351
$InstallFailed = (-not $?)
5452
}
5553

0 commit comments

Comments
 (0)