Skip to content

Commit

Permalink
Merge pull request #18526 from dotnet/marcpopMSFT-revertmsbuildnoinpr…
Browse files Browse the repository at this point in the history
…ocnode

Disable "MSBuild Server v1" by default
  • Loading branch information
marcpopMSFT committed Jun 25, 2021
2 parents d94269b + f070654 commit cb63644
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.DotNet.Cli.Utils
internal class MSBuildForwardingAppWithoutLogging
{
private static readonly bool AlwaysExecuteMSBuildOutOfProc = Env.GetEnvironmentVariableAsBool("DOTNET_CLI_RUN_MSBUILD_OUTOFPROC");
private static readonly bool DoNotUseMSBUILDNOINPROCNODE = Env.GetEnvironmentVariableAsBool("DOTNET_CLI_DO_NOT_USE_MSBUILDNOINPROCNODE");
private static readonly bool UseMSBUILDNOINPROCNODE = Env.GetEnvironmentVariableAsBool("DOTNET_CLI_USE_MSBUILDNOINPROCNODE");

private const string MSBuildExeName = "MSBuild.dll";

Expand Down Expand Up @@ -54,7 +54,7 @@ public MSBuildForwardingAppWithoutLogging(IEnumerable<string> argsToForward, str
_argsToForward = argsToForward;
MSBuildPath = msbuildPath ?? defaultMSBuildPath;

if (!DoNotUseMSBUILDNOINPROCNODE)
if (UseMSBUILDNOINPROCNODE)
{
// Force MSBuild to use external working node long living process for building projects
// We also refers to this as MSBuild Server V1 as entry process forwards most of the work to it.
Expand Down

0 comments on commit cb63644

Please sign in to comment.