From bdff556da11fcf4e6d43b8dd541e5c8acf0a4f18 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 3 Nov 2022 14:15:23 -0700 Subject: [PATCH] Workaround for msbuild issue in host tests (#77850) Co-authored-by: Elinor Fung --- src/installer/tests/TestUtils/DotNetCli.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/installer/tests/TestUtils/DotNetCli.cs b/src/installer/tests/TestUtils/DotNetCli.cs index 08e40aaf25e6c..d7fcdabeb8a17 100644 --- a/src/installer/tests/TestUtils/DotNetCli.cs +++ b/src/installer/tests/TestUtils/DotNetCli.cs @@ -53,6 +53,7 @@ public Command Exec(string command, params string[] args) newArgs.Insert(0, command); return Command.Create(DotnetExecutablePath, newArgs) + .EnvironmentVariable("DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER", "1") // https://github.com/dotnet/runtime/issues/74328 .EnvironmentVariable("DOTNET_SKIP_FIRST_TIME_EXPERIENCE", "1") .EnvironmentVariable("DOTNET_MULTILEVEL_LOOKUP", "0"); // Avoid looking at machine state by default }