Skip to content

Commit

Permalink
Workaround for msbuild issue in host tests (#77850)
Browse files Browse the repository at this point in the history
Co-authored-by: Elinor Fung <elfung@microsoft.com>
  • Loading branch information
github-actions[bot] and elinor-fung authored Nov 3, 2022
1 parent 96c24ea commit bdff556
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/installer/tests/TestUtils/DotNetCli.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bdff556

Please sign in to comment.