Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 59bbc57

Browse files
committed
Fix test failures in local build due to environment variable filter
1 parent 68175e5 commit 59bbc57

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build_projects/dotnet-cli-build/EnvironmentVariableFilter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class EnvironmentFilter
2828
private IEnumerable<string> _environmentVariablesToKeep = new string []
2929
{
3030
"DOTNET_CLI_TELEMETRY_SESSIONID",
31+
"DOTNET_MULTILEVEL_LOOKUP",
3132
"DOTNET_RUNTIME_ID",
3233
"DOTNET_SKIP_FIRST_TIME_EXPERIENCE",
3334
"NUGET_PACKAGES"

run-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export VSTEST_TRACE_BUILD=1
152152

153153

154154
# Don't resolve shared frameworks from user or global locations
155-
DOTNET_MULTILEVEL_LOOKUP=0
155+
export DOTNET_MULTILEVEL_LOOKUP=0
156156

157157
# Install a stage 0
158158
(set -x ; "$REPOROOT/scripts/obtain/dotnet-install.sh" --channel "release/2.0.0" --install-dir "$DOTNET_INSTALL_DIR" --architecture "$ARCHITECTURE" $LINUX_PORTABLE_INSTALL_ARGS)

0 commit comments

Comments
 (0)