Use Tls2 for dotnet-install script download
This commit is contained in:
parent
2c46d9d042
commit
934ae35aa1
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ $env:VSTEST_BUILD_TRACE=1
|
||||||
$env:VSTEST_TRACE_BUILD=1
|
$env:VSTEST_TRACE_BUILD=1
|
||||||
|
|
||||||
# install a stage0
|
# install a stage0
|
||||||
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||||
$dotnetInstallPath = Join-Path $env:DOTNET_INSTALL_DIR "dotnet-install.ps1"
|
$dotnetInstallPath = Join-Path $env:DOTNET_INSTALL_DIR "dotnet-install.ps1"
|
||||||
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile "$dotnetInstallPath"
|
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile "$dotnetInstallPath"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue