Skip to content

Commit

Permalink
Merge pull request #28865 from jasonmalinowski/fix-ci
Browse files Browse the repository at this point in the history
Make sure TLS 1.2 is used to fetch from https://dot.net
  • Loading branch information
jasonmalinowski authored Jul 27, 2018
2 parents 438d8a2 + 7dac113 commit a1e3f28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build/scripts/build-utils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ function Ensure-DotnetSdk() {
Create-Directory $cliDir
Create-Directory $toolsDir
$destFile = Join-Path $toolsDir "dotnet-install.ps1"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$webClient = New-Object -TypeName "System.Net.WebClient"
$webClient.DownloadFile("https://dot.net/v1/dotnet-install.ps1", $destFile)
Exec-Block { & $destFile -Version $sdkVersion -InstallDir $cliDir } | Out-Null
Expand Down

0 comments on commit a1e3f28

Please sign in to comment.