Skip to content

Commit

Permalink
Merge pull request #511 from AndyGerlicher/NodeReuseFixU2
Browse files Browse the repository at this point in the history
Explicitly specify /nodeReuse in node creation
  • Loading branch information
AndyGerlicher committed Mar 3, 2016
2 parents 1a5f05d + 1a3fc21 commit 9a553aa
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,12 @@ public bool CreateNode(int nodeId, INodePacketFactory factory, NodeConfiguration
}

// Start the new process. We pass in a node mode with a node number of 1, to indicate that we
// want to start up just a standard MSBuild out-of-proc node.
string commandLineArgs = " /nologo /nodemode:1 ";

// Disable node re-use if it is not requested (because no argument means enable reuse).
if (!ComponentHost.BuildParameters.EnableNodeReuse)
{
commandLineArgs += "/nodeReuse:false";
}
// want to start up just a standard MSBuild out-of-proc node.
// Note: We need to always pass /nodeReuse to ensure the value for /nodeReuse from msbuild.rsp
// (next to msbuild.exe) is ignored.
string commandLineArgs = ComponentHost.BuildParameters.EnableNodeReuse ?
"/nologo /nodemode:1 /nodeReuse:true" :
"/nologo /nodemode:1 /nodeReuse:false";

// Make it here.
CommunicationsUtilities.Trace("Starting to acquire a new or existing node to establish node ID {0}...", nodeId);
Expand Down

0 comments on commit 9a553aa

Please sign in to comment.