Use Tls2 for dotnet-install script download

This commit is contained in:
Nick Guerrera 2018-07-26 16:06:39 -07:00
parent 2c46d9d042
commit 934ae35aa1

View file

@ -81,6 +81,7 @@ $env:VSTEST_BUILD_TRACE=1
$env:VSTEST_TRACE_BUILD=1
# install a stage0
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$dotnetInstallPath = Join-Path $env:DOTNET_INSTALL_DIR "dotnet-install.ps1"
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile "$dotnetInstallPath"