239 references to CommunicationsUtilities
Microsoft.Build (142)
BackEnd\BuildManager\BuildParameters.cs (2)
288
?
CommunicationsUtilities
.GetEnvironmentVariables()
1007
_buildProcessEnvironment =
CommunicationsUtilities
.GetEnvironmentVariables();
BackEnd\Client\MSBuildClient.cs (29)
157
CommunicationsUtilities
.Trace($"Executing build with command line '{descriptiveCommandLine}'");
168
CommunicationsUtilities
.Trace("Server was not running. Starting server now.");
180
CommunicationsUtilities
.Trace("Server is busy, falling back to former behavior.");
195
CommunicationsUtilities
.Trace($"Failed to obtain the current build server state: {ex}");
196
CommunicationsUtilities
.Trace($"HResult: {ex.HResult}.");
214
CommunicationsUtilities
.Trace("Build finished.");
240
CommunicationsUtilities
.Trace("Trying shutdown server node.");
245
CommunicationsUtilities
.Trace("No need to shutdown server node for it is not running.");
254
CommunicationsUtilities
.Trace("Server cannot be shut down for it is not idle.");
261
CommunicationsUtilities
.Trace("Client cannot connect to idle server to shut it down.");
267
CommunicationsUtilities
.Trace("Failed to send shutdown command to the server.");
282
CommunicationsUtilities
.Trace("Wait for server to be not busy - will retry soon...");
354
CommunicationsUtilities
.Trace($"MSBuild client error: problem during packet handling occurred: {ex}.");
379
CommunicationsUtilities
.Trace($"MSBuild client warning: problem during querying console buffer width: {ex}");
412
CommunicationsUtilities
.Trace($"Command packet of type '{packet.Type}' sent...");
416
CommunicationsUtilities
.Trace($"Failed to send command packet of type '{packet?.Type.ToString() ?? "Unknown"}' to server: {ex}");
440
CommunicationsUtilities
.Trace("Another process launching the msbuild server, falling back to former behavior.");
447
CommunicationsUtilities
.Trace($"Failed to obtain the current build server state: {ex}");
448
CommunicationsUtilities
.Trace($"HResult: {ex.HResult}.");
461
CommunicationsUtilities
.Trace("Starting Server...");
463
CommunicationsUtilities
.Trace($"Server started with PID: {msbuildProcess?.Id}");
467
CommunicationsUtilities
.Trace($"Failed to launch the msbuild server: {ex}");
481
CommunicationsUtilities
.Trace("Sending shutdown command to server.");
522
private ServerNodeHandshake GetHandshake() => new(
CommunicationsUtilities
.GetHandshakeOptions(
534
CommunicationsUtilities
.Trace("MSBuild client sent cancellation command.");
544
CommunicationsUtilities
.Trace($"MSBuild client error: packet pump unexpectedly shut down: {packetPump.PacketPumpException}");
589
CommunicationsUtilities
.Trace($"Build response received: exit code '{response.ExitCode}', exit type '{response.ExitType}'");
618
CommunicationsUtilities
.Trace($"Retrying to connect to server after {sw.ElapsedMilliseconds} ms");
626
CommunicationsUtilities
.Trace($"Failed to connect to server: {result.ErrorMessage}");
BackEnd\Client\MSBuildClientPacketPump.cs (5)
202
CommunicationsUtilities
.Trace("Entering read loop.");
235
CommunicationsUtilities
.Trace("Shutdown message pump thread.");
301
CommunicationsUtilities
.Trace($"Packet factory failed to receive package. Exception while deserializing packet {packetType}.");
332
CommunicationsUtilities
.Trace($"Exception occurred in the packet pump: {ex}");
336
CommunicationsUtilities
.Trace("Ending read loop.");
BackEnd\Components\Communications\NodeEndpointOutOfProc.cs (1)
37
HandshakeOptions handshakeOptions =
CommunicationsUtilities
.GetHandshakeOptions(
BackEnd\Components\Communications\NodeLauncher.cs (5)
63
CommunicationsUtilities
.Trace($"Launching node from {nodeLaunchData.MSBuildLocation}");
144
CommunicationsUtilities
.Trace($"Successfully launched {exeName} node with PID {process.Id}");
149
CommunicationsUtilities
.Trace(
202
CommunicationsUtilities
.Trace(
210
CommunicationsUtilities
.Trace($"Successfully launched {exeName} node with PID {processInfo.dwProcessId}");
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
395
int connectionTimeout =
CommunicationsUtilities
.NodeConnectionTimeout;
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (4)
72
CommunicationsUtilities
.Trace($"""MSBUILDNODEHANDSHAKESALT="{Traits.MSBuildNodeHandshakeSalt}", msbuildDirectory="{BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32}", enableNodeReuse={enableNodeReuse}, enableLowPriority={enableLowPriority}""");
73
return new Handshake(
CommunicationsUtilities
.GetHandshakeOptions(taskHost: false, taskHostParameters: TaskHostParameters.Empty, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture(), nodeReuse: enableNodeReuse, lowPriority: enableLowPriority));
92
Handshake hostHandshake = new(
CommunicationsUtilities
.GetHandshakeOptions(taskHost: false, taskHostParameters: TaskHostParameters.Empty, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture(), nodeReuse: ComponentHost.BuildParameters.EnableNodeReuse, lowPriority: ComponentHost.BuildParameters.LowPriority));
104
CommunicationsUtilities
.Trace($"Starting to acquire {numberOfNodesToCreate} new or existing node(s) to establish nodes from ID {nextNodeId} to {nextNodeId + numberOfNodesToCreate - 1}...");
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (38)
192
CommunicationsUtilities
.Trace($"Shutting down node with pid = {nodeProcess.Id}");
289
CommunicationsUtilities
.Trace($"Attempting to connect to {possibleRunningNodesList.Count} existing processes '{expectedProcessName}'...");
310
CommunicationsUtilities
.Trace("FAILED TO CONNECT TO A CHILD NODE");
332
CommunicationsUtilities
.Trace($"Trying to connect to existing process {nodeToReuse.ProcessName} with id {nodeToReuse.Id} to establish node {nodeId}...");
355
CommunicationsUtilities
.Trace($"Successfully connected to existing node {nodeId} which is PID {nodeToReuse.Id}");
374
CommunicationsUtilities
.Trace("Could not connect to existing process, now creating a process...");
419
CommunicationsUtilities
.Trace($"Successfully connected to created node {nodeId} which is PID {msbuildProcess.Id}");
432
CommunicationsUtilities
.Trace($"Could not connect to node with PID {msbuildProcess.Id}; it has exited with exit code {msbuildProcess.ExitCode}. This can indicate a crash at startup");
438
CommunicationsUtilities
.Trace($"Could not connect to node with PID {msbuildProcess.Id}; it has exited with unknown exit code. This can indicate a crash at startup");
444
CommunicationsUtilities
.Trace($"Could not connect to node with PID {msbuildProcess.Id}; it is still running. This can occur when two multiprocess builds run in parallel and the other one 'stole' this node");
510
CommunicationsUtilities
.Trace($"Filtering {processes.Length} candidate processes by NodeMode {expectedNodeMode} for process name '{expectedProcessName}'");
520
CommunicationsUtilities
.Trace($"Skipping process {process.Id} - unable to retrieve command line");
528
CommunicationsUtilities
.Trace($"Including process {process.Id} - command line retrieval not supported on this platform");
536
CommunicationsUtilities
.Trace($"Including process {process.Id} with matching NodeMode {processNodeMode.Value}");
541
CommunicationsUtilities
.Trace(
547
CommunicationsUtilities
.Trace($"Skipping process {process.Id} - error retrieving command line: {ex.Message}");
553
CommunicationsUtilities
.Trace($"Filtered to {filtered.Count} processes matching NodeMode {expectedNodeMode}");
591
CommunicationsUtilities
.Trace($"Node reuse threshold is 0, terminating all {nodeCount} nodes");
598
CommunicationsUtilities
.Trace($"System-wide node count: {systemWideNodeCount}, threshold: {maxNodesToKeep}, this instance has: {nodeCount} nodes");
615
CommunicationsUtilities
.Trace($"Keeping {nodesToKeepInThisInstance} of {nodeCount} nodes in this instance to help meet threshold of {maxNodesToKeep}");
665
CommunicationsUtilities
.Trace($"Error counting system-wide nodes with mode {nodeMode}: {ex.Message}");
763
CommunicationsUtilities
.Trace($"Attempting connect to PID {nodeProcessId} with pipe {pipeName} with timeout {timeout} ms");
773
CommunicationsUtilities
.Trace($"Failed to connect to pipe {pipeName}. {result.ErrorMessage.TrimEnd()}");
785
CommunicationsUtilities
.Trace($"Failed to connect to pipe {pipeName}. {e.Message.TrimEnd()}");
822
CommunicationsUtilities
.Trace($"Writing handshake part {component.Key} ({component.Value}) to pipe {pipeName}");
829
CommunicationsUtilities
.Trace($"Reading handshake from pipe {pipeName}");
839
CommunicationsUtilities
.Trace($"Successfully connected to pipe {pipeName}...!");
1032
CommunicationsUtilities
.Trace(_nodeId, $"EXCEPTION in RunPacketReadLoopAsync: {e}");
1065
CommunicationsUtilities
.Trace(_nodeId, $"EXCEPTION in RunPacketReadLoopAsync (Reading): {e}");
1180
CommunicationsUtilities
.Trace(context._nodeId, $"EXCEPTION in SendData: {e}");
1235
CommunicationsUtilities
.Trace($"Waiting for node with pid = {_process.Id} to exit");
1263
CommunicationsUtilities
.Trace($"Killing node with pid = {_process.Id}");
1272
CommunicationsUtilities
.Trace(_nodeId, $"COMMUNICATIONS ERROR (HRC) Node: {_nodeId} Process: {_process.Id} Bytes Read: {bytesRead} Expected: {_headerByte.Length}");
1277
CommunicationsUtilities
.Trace(_nodeId, $" Child Process {_process.Id} has exited.");
1281
CommunicationsUtilities
.Trace(_nodeId, $" Child Process {_process.Id} is still running.");
1286
CommunicationsUtilities
.Trace(_nodeId, $"Unable to retrieve remote process information. {e}");
1348
CommunicationsUtilities
.Trace(_nodeId, $"Bad packet read for packet {packetType} - Expected {packetLength} bytes, got {bytesRead}");
1365
CommunicationsUtilities
.Trace(_nodeId, $"EXCEPTION in ReadAndRoutePacket: {e}");
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (4)
672
CommunicationsUtilities
.Trace($"DisconnectFromHost: Node context already removed for key: {nodeKey}");
718
CommunicationsUtilities
.Trace($"For a host context of {hostContext}, spawning executable from {nodeLaunchData.MSBuildLocation}.");
802
CommunicationsUtilities
.Trace($"For a host context of {hostContext}, using app host from {appHostPath}.");
824
CommunicationsUtilities
.Trace($"For a host context of {hostContext}, app host not found at {appHostPath}, falling back to dotnet.exe from {resolvedDotnetHostPath}.");
BackEnd\Components\Communications\RarNodeLauncher.cs (3)
34
CommunicationsUtilities
.Trace("Existing RAR node found.");
38
CommunicationsUtilities
.Trace("Launching RAR node...");
46
CommunicationsUtilities
.Trace($"Failed to launch RAR node: {ex}");
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
913
entryToComplete.RequestConfiguration.SavedEnvironmentVariables = entryToComplete.TaskEnvironment.GetEnvironmentVariables().ToFrozenDictionary(
CommunicationsUtilities
.EnvironmentVariableComparer);
1401
_requestEntry.RequestConfiguration.SavedEnvironmentVariables = _requestEntry.TaskEnvironment.GetEnvironmentVariables().ToFrozenDictionary(
CommunicationsUtilities
.EnvironmentVariableComparer);
BackEnd\Node\InProcNode.cs (2)
355
CommunicationsUtilities
.SetEnvironment(_savedEnvironment);
485
_savedEnvironment =
CommunicationsUtilities
.GetEnvironmentVariables();
BackEnd\Node\OutOfProcNode.cs (5)
459
CommunicationsUtilities
.Trace($"Shutting down with reason: {_shutdownReason}, and exception: {_shutdownException}.");
503
CommunicationsUtilities
.SetEnvironment(_savedEnvironment);
507
CommunicationsUtilities
.Trace($"Failed to restore the original environment: {ex}.");
544
CommunicationsUtilities
.Trace("Shut down complete.");
717
_savedEnvironment =
CommunicationsUtilities
.GetEnvironmentVariables();
BackEnd\Node\OutOfProcServerNode.cs (8)
97
CommunicationsUtilities
.GetHandshakeOptions(taskHost: false, taskHostParameters: TaskHostParameters.Empty, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture()));
103
CommunicationsUtilities
.Trace($"Starting new server node with handshake {handshake}");
251
CommunicationsUtilities
.Trace($"Shutting down with reason: {_shutdownReason}, and exception: {_shutdownException}.");
262
CommunicationsUtilities
.Trace("Shut down complete.");
332
CommunicationsUtilities
.Trace($"Terminating server node due to over-provisioning: {serverNodeCount} server nodes found system-wide.");
343
CommunicationsUtilities
.Trace("Received request to cancel build running on MSBuild Server. MSBuild server will shutdown.");
367
CommunicationsUtilities
.Trace($"Building with MSBuild server with command line {command.CommandLine}");
383
CommunicationsUtilities
.SetEnvironment(command.BuildProcessEnvironment);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
961
translator.TranslateDictionary(ref _savedEnvironmentVariables,
CommunicationsUtilities
.EnvironmentVariableComparer);
BackEnd\Shared\BuildResult.cs (4)
672
translator.TranslateDictionary(ref _savedEnvironmentVariables,
CommunicationsUtilities
.EnvironmentVariableComparer);
685
translator.TranslateDictionary(ref savedEnvironmentVariables,
CommunicationsUtilities
.EnvironmentVariableComparer, ref additionalEntries, s_additionalEntriesKeys);
693
translator.TranslateDictionary(ref savedEnvironmentVariables,
CommunicationsUtilities
.EnvironmentVariableComparer, ref additionalEntries, s_additionalEntriesKeys);
695
.ToFrozenDictionary(
CommunicationsUtilities
.EnvironmentVariableComparer); // no-op if already frozen
Evaluation\IntrinsicFunctions.cs (3)
435
=>
CommunicationsUtilities
.GetHashCode(toHash);
449
StringHashingAlgorithm.Legacy =>
CommunicationsUtilities
.GetHashCode(toHash),
507
HandshakeOptions desiredContext =
CommunicationsUtilities
.GetHandshakeOptions(taskHost: true, taskHostParameters: parameters);
Instance\TaskFactories\TaskHostTask.cs (1)
360
_requiredContext =
CommunicationsUtilities
.GetHandshakeOptions(
NodeEndpointOutOfProcBase.cs (23)
293
CommunicationsUtilities
.Trace($"Changing link status from {_status} to {newStatus}");
380
int waitTimeRemaining = Math.Max(0,
CommunicationsUtilities
.NodeConnectionTimeout - (int)usedWaitTime.TotalMilliseconds);
391
CommunicationsUtilities
.Trace($"Waiting for connection {waitTimeRemaining} ms...");
396
CommunicationsUtilities
.Trace("Connection timed out waiting a host to contact us. Exiting comm thread.");
401
CommunicationsUtilities
.Trace("Parent started connecting. Reading handshake from parent");
419
byteToAccept: index == 0 ? (byte?)
CommunicationsUtilities
.handshakeVersion : null, /* this will disconnect a < 16.8 host; it expects leading 00 or F5 or 06. 0x00 is a wildcard */
425
CommunicationsUtilities
.Trace($"Handshake failed with error: {result.ErrorMessage}");
430
CommunicationsUtilities
.Trace(
457
CommunicationsUtilities
.Trace($"Sent PacketVersion: {NodePacketTypeExtensions.PacketVersion}");
460
CommunicationsUtilities
.Trace("Successfully connected to parent.");
487
CommunicationsUtilities
.Trace($"Client connection failed but we will wait for another connection. Exception: {e.Message}");
509
CommunicationsUtilities
.Trace($"Client connection failed. Exiting comm thread. {e}");
526
CommunicationsUtilities
.Trace("Ending read loop");
575
CommunicationsUtilities
.Trace($"Handshake for NET Host. Child host {handshakePart} for {component.Key}.");
579
CommunicationsUtilities
.Trace(
616
CommunicationsUtilities
.Trace("Entering read loop.");
660
CommunicationsUtilities
.Trace($"Exception reading from server. {e}");
674
CommunicationsUtilities
.Trace("Parent disconnected gracefully.");
681
CommunicationsUtilities
.Trace("Parent disconnected abruptly.");
687
CommunicationsUtilities
.Trace($"Incomplete header read from server. {bytesRead} of {headerByte.Length} bytes read");
719
CommunicationsUtilities
.Trace($"Exception while deserializing packet {packetType}: {e}");
778
CommunicationsUtilities
.Trace($"Exception while serializing packets: {e}");
787
CommunicationsUtilities
.Trace("Disconnecting voluntarily");
Utilities\Utilities.cs (1)
487
IDictionary<string, string> environmentVariablesBag =
CommunicationsUtilities
.GetEnvironmentVariables();
Microsoft.Build.Engine.UnitTests (2)
BackEnd\AppHostSupport_Tests.cs (2)
193
HandshakeOptions options =
CommunicationsUtilities
.GetHandshakeOptions(
239
HandshakeOptions options =
CommunicationsUtilities
.GetHandshakeOptions(
Microsoft.Build.Framework (24)
BackEnd\Handshake.cs (13)
76
const int handshakeVersion = (int)
CommunicationsUtilities
.handshakeVersion;
78
CommunicationsUtilities
.Trace($"Building handshake for node type {nodeType}, (version {handshakeVersion}): options {options}.");
83
int salt =
CommunicationsUtilities
.GetHashCode($"{handshakeSalt}{toolsDirectory}");
85
CommunicationsUtilities
.Trace($"Handshake salt is {handshakeSalt}");
86
CommunicationsUtilities
.Trace($"Tools directory root is {toolsDirectory}");
137
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.Options),
138
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.Salt),
139
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMajor),
140
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMinor),
141
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionBuild),
142
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionPrivate),
143
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.SessionId));
149
=>
CommunicationsUtilities
.handshakeVersion;
BackEnd\ServerNodeHandshake.cs (6)
26
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.Options),
27
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.Salt),
28
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMajor),
29
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMinor),
30
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionBuild),
31
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionPrivate));
MultiProcessTaskEnvironmentDriver.cs (3)
54
return
CommunicationsUtilities
.GetEnvironmentVariables();
60
CommunicationsUtilities
.SetEnvironmentVariable(name, value);
66
CommunicationsUtilities
.SetEnvironment(newEnvironment);
MultiThreadedTaskEnvironmentDriver.cs (2)
35
_environmentVariables = new Dictionary<string, string>(environmentVariables,
CommunicationsUtilities
.EnvironmentVariableComparer);
47
_environmentVariables = new Dictionary<string, string>(variables.Count,
CommunicationsUtilities
.EnvironmentVariableComparer);
Microsoft.Build.Framework.UnitTests (8)
CommunicationUtilities_Tests.cs (8)
21
IDictionary<string, string> envVars =
CommunicationsUtilities
.GetEnvironmentVariables();
45
CommunicationsUtilities
.SetEnvironmentVariable(testName1, testValue);
48
IDictionary<string, string> envVars =
CommunicationsUtilities
.GetEnvironmentVariables();
50
CommunicationsUtilities
.SetEnvironmentVariable(testName1, null);
51
CommunicationsUtilities
.SetEnvironmentVariable(testName2, testValue);
53
CommunicationsUtilities
.SetEnvironment(envVars);
60
CommunicationsUtilities
.SetEnvironmentVariable(testName1, null);
61
CommunicationsUtilities
.SetEnvironmentVariable(testName2, null);
Microsoft.Build.Tasks.Core (28)
AssemblyDependency\Node\OutOfProcRarClient.cs (1)
47
CommunicationsUtilities
.Trace("Initialized new RAR client.");
AssemblyDependency\Node\OutOfProcRarNode.cs (4)
64
CommunicationsUtilities
.Trace($"Shutting down with reason: {shutdownReason}");
68
CommunicationsUtilities
.Trace($"Shutting down with reason: {shutdownReason}, and exception: {shutdownException}");
147
CommunicationsUtilities
.Trace($"{endpoints.Length} RAR endpoints started.");
156
CommunicationsUtilities
.Trace("All endpoints successfully stopped. Exiting.");
AssemblyDependency\Node\OutOfProcRarNodeEndpoint.cs (7)
47
CommunicationsUtilities
.Trace($"({_endpointId}) Starting RAR endpoint.");
58
CommunicationsUtilities
.Trace($"({_endpointId}) RAR endpoint stopped due to cancellation.");
87
CommunicationsUtilities
.Trace($"({_endpointId}) Received request.");
95
CommunicationsUtilities
.Trace($"({_endpointId}) Executing RAR...");
107
CommunicationsUtilities
.Trace($"({_endpointId}) Completed RAR request.");
113
CommunicationsUtilities
.Trace($"({_endpointId}) RAR client disconnected.");
123
CommunicationsUtilities
.Trace($"({_endpointId}) Exception while executing RAR request: {e}");
AssemblyDependency\ResolveAssemblyReference.cs (1)
3289
CommunicationsUtilities
.Trace($"RAR out-of-proc connection failed, failing back to in-proc. Exception: {ex}");
NodePipeClient.cs (5)
40
CommunicationsUtilities
.Trace($"Attempting connect to pipe {PipeName} with timeout {timeout} ms");
53
CommunicationsUtilities
.Trace($"Successfully connected to pipe {PipeName}...!");
70
CommunicationsUtilities
.Trace($"The remote pipe owner {remoteOwner.Value} does not match {identifier.Value}");
83
CommunicationsUtilities
.Trace($"Writing handshake part {component.Key} ({component.Value}) to pipe {PipeName}");
90
CommunicationsUtilities
.Trace($"Reading handshake from pipe {PipeName}");
NodePipeServer.cs (10)
94
int waitTimeRemaining = Math.Max(0,
CommunicationsUtilities
.NodeConnectionTimeout - (int)usedWaitTime.TotalMilliseconds);
104
CommunicationsUtilities
.Trace($"Waiting for connection {waitTimeRemaining} ms...");
115
CommunicationsUtilities
.Trace("Connection timed out waiting a host to contact us. Exiting comm thread.");
119
CommunicationsUtilities
.Trace("Parent started connecting. Reading handshake from parent");
138
CommunicationsUtilities
.Trace($"Client connection failed but we will wait for another connection. Exception: {e.Message}");
153
CommunicationsUtilities
.Trace($"Client connection failed. Exiting comm thread. {e}");
197
_pipeServer.TryReadIntForHandshake(byteToAccept: index == 0 ?
CommunicationsUtilities
.handshakeVersion : null,
205
CommunicationsUtilities
.Trace($"Handshake failed. Received {handshakePart} from host not {component.Value}. Probably the host is a different MSBuild build.");
226
CommunicationsUtilities
.Trace("Successfully connected to parent.");
249
CommunicationsUtilities
.Trace($"Handshake failed. Host user is {(clientIdentity == null ? "<unknown>" : clientIdentity.Name)} but we were created by {currentIdentity.Name}.");
MSBuild (35)
NodeEndpointOutOfProcBase.cs (23)
293
CommunicationsUtilities
.Trace($"Changing link status from {_status} to {newStatus}");
380
int waitTimeRemaining = Math.Max(0,
CommunicationsUtilities
.NodeConnectionTimeout - (int)usedWaitTime.TotalMilliseconds);
387
CommunicationsUtilities
.Trace($"Waiting for connection {waitTimeRemaining} ms...");
396
CommunicationsUtilities
.Trace("Connection timed out waiting a host to contact us. Exiting comm thread.");
401
CommunicationsUtilities
.Trace("Parent started connecting. Reading handshake from parent");
419
byteToAccept: index == 0 ? (byte?)
CommunicationsUtilities
.handshakeVersion : null, /* this will disconnect a < 16.8 host; it expects leading 00 or F5 or 06. 0x00 is a wildcard */
425
CommunicationsUtilities
.Trace($"Handshake failed with error: {result.ErrorMessage}");
430
CommunicationsUtilities
.Trace(
457
CommunicationsUtilities
.Trace($"Sent PacketVersion: {NodePacketTypeExtensions.PacketVersion}");
460
CommunicationsUtilities
.Trace("Successfully connected to parent.");
472
CommunicationsUtilities
.Trace($"Handshake failed. Host user is {(clientIdentity == null ? "<unknown>" : clientIdentity.Name)} but we were created by {currentIdentity.Name}.");
487
CommunicationsUtilities
.Trace($"Client connection failed but we will wait for another connection. Exception: {e.Message}");
509
CommunicationsUtilities
.Trace($"Client connection failed. Exiting comm thread. {e}");
526
CommunicationsUtilities
.Trace("Ending read loop");
579
CommunicationsUtilities
.Trace(
616
CommunicationsUtilities
.Trace("Entering read loop.");
660
CommunicationsUtilities
.Trace($"Exception reading from server. {e}");
674
CommunicationsUtilities
.Trace("Parent disconnected gracefully.");
681
CommunicationsUtilities
.Trace("Parent disconnected abruptly.");
687
CommunicationsUtilities
.Trace($"Incomplete header read from server. {bytesRead} of {headerByte.Length} bytes read");
719
CommunicationsUtilities
.Trace($"Exception while deserializing packet {packetType}: {e}");
778
CommunicationsUtilities
.Trace($"Exception while serializing packets: {e}");
787
CommunicationsUtilities
.Trace("Disconnecting voluntarily");
NodeEndpointOutOfProcTaskHost.cs (1)
36
new(
CommunicationsUtilities
.GetHandshakeOptions(taskHost: true, taskHostParameters: TaskHostParameters.Empty, nodeReuse: _nodeReuse));
OutOfProcTaskHostNode.cs (8)
855
_savedEnvironment =
CommunicationsUtilities
.GetEnvironmentVariables();
1133
CommunicationsUtilities
.GetEnvironmentVariables(),
1154
CommunicationsUtilities
.SetEnvironment(context.SavedEnvironment);
1180
CommunicationsUtilities
.Trace($"Nested task {taskHostConfiguration.TaskName} dispatched while {_blockedTaskCount} tasks are blocked on callbacks.");
1311
CommunicationsUtilities
.SetEnvironment(_savedEnvironment);
1497
IDictionary<string, string> currentEnvironment =
CommunicationsUtilities
.GetEnvironmentVariables();
1517
CommunicationsUtilities
.SetEnvironment(_savedEnvironment);
1620
CommunicationsUtilities
.SetEnvironment(updatedEnvironment);
XMake.cs (3)
380
CommunicationsUtilities
.Trace($"Unexpected exception during command line parsing. Can not determine if it is allowed to use Server. Fall back to old behavior. Exception: {ex}");
2734
CommunicationsUtilities
.Trace($"Invalid node packet version value '{parameters[parameters.Length - 1]}': {ex.Message}");
2739
CommunicationsUtilities
.Trace($"Node packet version value '{parameters[parameters.Length - 1]}' out of range: {ex.Message}");