From 812d5dfeb6845716e3a4f8a7b8066257d1eafb39 Mon Sep 17 00:00:00 2001 From: Livar Cunha Date: Wed, 22 Aug 2018 13:30:36 -0700 Subject: [PATCH] Adding a workaround for the sockets issue when restoring with many nuget feeds. --- run-build.ps1 | 3 +++ run-build.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/run-build.ps1 b/run-build.ps1 index 50daef678..e4c59d380 100644 --- a/run-build.ps1 +++ b/run-build.ps1 @@ -76,6 +76,9 @@ $env:DOTNET_MULTILEVEL_LOOKUP=0 # Turn off MSBuild Node re-use $env:MSBUILDDISABLENODEREUSE=1 +# Workaround for the sockets issue when restoring with many nuget feeds. +$env:DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0 + # Enable vs test console logging $env:VSTEST_BUILD_TRACE=1 $env:VSTEST_TRACE_BUILD=1 diff --git a/run-build.sh b/run-build.sh index 426604aee..dfa0e0425 100755 --- a/run-build.sh +++ b/run-build.sh @@ -154,6 +154,9 @@ export DOTNET_MULTILEVEL_LOOKUP=0 # Turn off MSBuild Node re-use export MSBUILDDISABLENODEREUSE=1 +# Workaround for the sockets issue when restoring with many nuget feeds. +export DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0 + # Install a stage 0 INSTALL_ARCHITECTURE=$ARCHITECTURE archlower="$(echo $ARCHITECTURE | awk '{print tolower($0)}')"