Skip to content

Commit

Permalink
Workaround 7.0 msbuild bug hit in MacOS CI builds (#3328)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikem8361 authored Aug 30, 2022
1 parent 81f76f3 commit 4af885f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ protected async Task Restore(string extraArgs, ITestOutputHelper output)
ProcessRunner runner = new ProcessRunner(DotNetToolPath, args).
WithEnvironmentVariable("DOTNET_MULTILEVEL_LOOKUP", "0").
WithEnvironmentVariable("DOTNET_ROOT", Path.GetDirectoryName(DotNetToolPath)).
WithEnvironmentVariable("DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER", "true").
WithEnvironmentVariable("DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR", Path.GetDirectoryName(DotNetToolPath)).
WithEnvironmentVariable("DOTNET_INSTALL_DIR", Path.GetDirectoryName(DotNetToolPath)).
RemoveEnvironmentVariable("MSBuildSDKsPath").
Expand Down Expand Up @@ -238,6 +239,7 @@ protected async Task Build(string dotnetArgs, ITestOutputHelper output)
ProcessRunner runner = new ProcessRunner(DotNetToolPath, dotnetArgs).
WithEnvironmentVariable("DOTNET_MULTILEVEL_LOOKUP", "0").
WithEnvironmentVariable("DOTNET_ROOT", Path.GetDirectoryName(DotNetToolPath)).
WithEnvironmentVariable("DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER", "true").
WithEnvironmentVariable("DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR", Path.GetDirectoryName(DotNetToolPath)).
WithEnvironmentVariable("DOTNET_INSTALL_DIR", Path.GetDirectoryName(DotNetToolPath)).
RemoveEnvironmentVariable("MSBuildSDKsPath").
Expand Down

0 comments on commit 4af885f

Please sign in to comment.