diff --git a/src/Tests/Microsoft.NET.TestFramework/TestContext.cs b/src/Tests/Microsoft.NET.TestFramework/TestContext.cs index b0401789bd66..a09b2750b410 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestContext.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestContext.cs @@ -65,6 +65,8 @@ public void AddTestEnvironmentVariables(SdkCommandSpec command) public static void Initialize(TestCommandLine commandLine) { + Environment.SetEnvironmentVariable("DOTNET_MULTILEVEL_LOOKUP", "0"); + TestContext testContext = new TestContext(); // This is dependent on the current artifacts layout: