Skip to content

Commit 91d5e15

Browse files
Prevent reading from .rsp file for worker nodes (#11170)
1 parent cc9d538 commit 91d5e15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Build/BackEnd/Components/Communications/NodeProviderOutOfProc.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System;
@@ -94,7 +94,7 @@ public IList<NodeInfo> CreateNodes(int nextNodeId, INodePacketFactory factory, F
9494
// want to start up just a standard MSBuild out-of-proc node.
9595
// Note: We need to always pass /nodeReuse to ensure the value for /nodeReuse from msbuild.rsp
9696
// (next to msbuild.exe) is ignored.
97-
string commandLineArgs = $"/nologo /nodemode:1 /nodeReuse:{ComponentHost.BuildParameters.EnableNodeReuse.ToString().ToLower()} /low:{ComponentHost.BuildParameters.LowPriority.ToString().ToLower()}";
97+
string commandLineArgs = $"/noautoresponse /nologo /nodemode:1 /nodeReuse:{ComponentHost.BuildParameters.EnableNodeReuse.ToString().ToLower()} /low:{ComponentHost.BuildParameters.LowPriority.ToString().ToLower()}";
9898

9999
CommunicationsUtilities.Trace("Starting to acquire {1} new or existing node(s) to establish nodes from ID {0} to {2}...", nextNodeId, numberOfNodesToCreate, nextNodeId + numberOfNodesToCreate - 1);
100100

0 commit comments

Comments
 (0)