Skip to content

Commit

Permalink
Update common Docker engineering infrastructure with latest (dotnet#2422
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dotnet-docker-bot authored Nov 30, 2020
1 parent 8252651 commit eb12720
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eng/common/Install-DotNetSdk.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ if (!(Test-Path $DotnetInstallScript)) {
Invoke-WebRequest "https://dot.net/v1/$DotnetInstallScript" -OutFile $InstallPath/$DotnetInstallScript
}

$DotnetChannel = "5.0"

if ($IsRunningOnUnix) {
& chmod +x $InstallPath/$DotnetInstallScript
& $InstallPath/$DotnetInstallScript --channel "3.1" --version "latest" --install-dir $InstallPath
& $InstallPath/$DotnetInstallScript --channel $DotnetChannel --version "latest" --install-dir $InstallPath
}
else {
& $InstallPath/$DotnetInstallScript -Channel "3.1" -Version "latest" -InstallDir $InstallPath
& $InstallPath/$DotnetInstallScript -Channel $DotnetChannel -Version "latest" -InstallDir $InstallPath
}

if ($LASTEXITCODE -ne 0) { throw "Failed to install the .NET Core SDK" }

0 comments on commit eb12720

Please sign in to comment.