From 59bbc5783fb7b2dba60b614d6ee5d6b835b3bdba Mon Sep 17 00:00:00 2001 From: Nick Guerrera Date: Thu, 29 Jun 2017 13:44:31 -0700 Subject: [PATCH] Fix test failures in local build due to environment variable filter --- build_projects/dotnet-cli-build/EnvironmentVariableFilter.cs | 1 + run-build.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build_projects/dotnet-cli-build/EnvironmentVariableFilter.cs b/build_projects/dotnet-cli-build/EnvironmentVariableFilter.cs index 5d5cdf9e3..432f30386 100644 --- a/build_projects/dotnet-cli-build/EnvironmentVariableFilter.cs +++ b/build_projects/dotnet-cli-build/EnvironmentVariableFilter.cs @@ -28,6 +28,7 @@ namespace Microsoft.DotNet.Cli.Build private IEnumerable _environmentVariablesToKeep = new string [] { "DOTNET_CLI_TELEMETRY_SESSIONID", + "DOTNET_MULTILEVEL_LOOKUP", "DOTNET_RUNTIME_ID", "DOTNET_SKIP_FIRST_TIME_EXPERIENCE", "NUGET_PACKAGES" diff --git a/run-build.sh b/run-build.sh index fcbf1b7e9..95154cdf6 100755 --- a/run-build.sh +++ b/run-build.sh @@ -152,7 +152,7 @@ export VSTEST_TRACE_BUILD=1 # Don't resolve shared frameworks from user or global locations -DOTNET_MULTILEVEL_LOOKUP=0 +export DOTNET_MULTILEVEL_LOOKUP=0 # Install a stage 0 (set -x ; "$REPOROOT/scripts/obtain/dotnet-install.sh" --channel "release/2.0.0" --install-dir "$DOTNET_INSTALL_DIR" --architecture "$ARCHITECTURE" $LINUX_PORTABLE_INSTALL_ARGS)