diff --git a/configure.cmd b/configure.cmd index b4cf0b95482..ffb7a3d7012 100644 --- a/configure.cmd +++ b/configure.cmd @@ -1,4 +1,5 @@ @echo off +SET NUGET_PACKAGES= powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -Command "%~dpn0.ps1" -SkipDotnetInfo %* IF ERRORLEVEL 1 ( EXIT /B %ERRORLEVEL% diff --git a/configure.ps1 b/configure.ps1 index 628cd89c108..cc0e1656cca 100644 --- a/configure.ps1 +++ b/configure.ps1 @@ -37,6 +37,12 @@ $ErrorActionPreference = 'Stop' Trace-Log "Configuring NuGet.Client build environment" +if ($env:CI -eq "true") { + [Environment]::SetEnvironmentVariable("NUGET_PACKAGES", $null, "Machine") +} else { + $Env:NUGET_PACKAGES="" +} + $BuildErrors = @() if ($ProcDump -eq $true -Or $env:CI -eq "true") diff --git a/configure.sh b/configure.sh index fc7c207d6c6..f2e85d54514 100644 --- a/configure.sh +++ b/configure.sh @@ -50,6 +50,7 @@ fi export DOTNET_ROOT="$CLI_DIR" export DOTNET_MULTILEVEL_LOOKUP="0" export "PATH=$CLI_DIR:$PATH" +export NUGET_PACKAGES= if [ "$CI" == "true" ]; then echo "##vso[task.setvariable variable=DOTNET_ROOT;isOutput=false;issecret=false;]$CLI_DIR"