117 references to Trace
Microsoft.Build (75)
BackEnd\Client\MSBuildClient.cs (14)
206
CommunicationsUtilities.
Trace
($"Executing build with command line '{descriptiveCommandLine}'");
243
CommunicationsUtilities.
Trace
($"Failed to obtain the current build server state: {ex}");
244
CommunicationsUtilities.
Trace
($"HResult: {ex.HResult}.");
367
CommunicationsUtilities.
Trace
($"MSBuild client error: problem during packet handling occurred: {ex}.");
451
CommunicationsUtilities.
Trace
($"MSBuild client warning: problem during querying console buffer width: {ex}");
484
CommunicationsUtilities.
Trace
($"Command packet of type '{packet.Type}' sent...");
488
CommunicationsUtilities.
Trace
($"Failed to send command packet of type '{packet?.Type.ToString() ?? "Unknown"}' to server: {ex}");
519
CommunicationsUtilities.
Trace
($"Failed to acquire server launch mutex '{serverLaunchMutexName}': {ex}");
520
CommunicationsUtilities.
Trace
($"HResult: {ex.HResult}.");
578
CommunicationsUtilities.
Trace
($"Server started with PID: {_launchedServerPid}");
582
CommunicationsUtilities.
Trace
($"Failed to launch the msbuild server: {ex}");
661
CommunicationsUtilities.
Trace
($"MSBuild client error: packet pump unexpectedly shut down: {packetPump.PacketPumpException}");
725
CommunicationsUtilities.
Trace
($"Build response received: exit code '{response.ExitCode}', exit type '{response.ExitType}'");
781
CommunicationsUtilities.
Trace
($"Retrying to connect to server after {sw.ElapsedMilliseconds} ms");
BackEnd\Client\MSBuildClientPacketPump.cs (2)
297
CommunicationsUtilities.
Trace
($"Packet factory failed to receive package. Exception while deserializing packet {packetType}.");
328
CommunicationsUtilities.
Trace
($"Exception occurred in the packet pump: {ex}");
BackEnd\Components\Communications\NodeLauncher.cs (3)
69
CommunicationsUtilities.
Trace
($"Launching node from {nodeLaunchData.MSBuildLocation}");
138
CommunicationsUtilities.
Trace
($"Successfully launched {exeName} node with PID {process.Id}");
143
CommunicationsUtilities.
Trace
(
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (2)
72
CommunicationsUtilities.
Trace
($"""MSBUILDNODEHANDSHAKESALT="{Traits.MSBuildNodeHandshakeSalt}", msbuildDirectory="{BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32}", enableNodeReuse={enableNodeReuse}, enableLowPriority={enableLowPriority}""");
103
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 (27)
192
CommunicationsUtilities.
Trace
($"Shutting down node with pid = {nodeProcess.Id}");
279
CommunicationsUtilities.
Trace
($"Attempting to connect to {possibleRunningNodesList.Count} existing processes '{expectedProcessName}'...");
322
CommunicationsUtilities.
Trace
($"Trying to connect to existing process {nodeToReuse.ProcessName} with id {nodeToReuse.Id} to establish node {nodeId}...");
345
CommunicationsUtilities.
Trace
($"Successfully connected to existing node {nodeId} which is PID {nodeToReuse.Id}");
409
CommunicationsUtilities.
Trace
($"Successfully connected to created node {nodeId} which is PID {msbuildProcess.Id}");
422
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");
428
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");
434
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");
580
CommunicationsUtilities.
Trace
($"Filtering {processes.Count} candidate processes by NodeMode {expectedNodeMode} for process name '{expectedProcessName}'");
590
CommunicationsUtilities.
Trace
($"Skipping process {process.Id} - unable to retrieve command line");
598
CommunicationsUtilities.
Trace
($"Including process {process.Id} - command line retrieval not supported on this platform");
606
CommunicationsUtilities.
Trace
($"Including process {process.Id} with matching NodeMode {processNodeMode.Value}");
611
CommunicationsUtilities.
Trace
(
617
CommunicationsUtilities.
Trace
($"Skipping process {process.Id} - error retrieving command line: {ex.Message}");
623
CommunicationsUtilities.
Trace
($"Filtered to {filtered.Count} processes matching NodeMode {expectedNodeMode}");
661
CommunicationsUtilities.
Trace
($"Node reuse threshold is 0, terminating all {nodeCount} nodes");
668
CommunicationsUtilities.
Trace
($"System-wide node count: {systemWideNodeCount}, threshold: {maxNodesToKeep}, this instance has: {nodeCount} nodes");
685
CommunicationsUtilities.
Trace
($"Keeping {nodesToKeepInThisInstance} of {nodeCount} nodes in this instance to help meet threshold of {maxNodesToKeep}");
735
CommunicationsUtilities.
Trace
($"Error counting system-wide nodes with mode {nodeMode}: {ex.Message}");
828
CommunicationsUtilities.
Trace
($"Attempting connect to PID {nodeProcessId} with pipe {pipeName} with timeout {timeout} ms");
838
CommunicationsUtilities.
Trace
($"Failed to connect to pipe {pipeName}. {result.ErrorMessage.TrimEnd()}");
850
CommunicationsUtilities.
Trace
($"Failed to connect to pipe {pipeName}. {e.Message.TrimEnd()}");
887
CommunicationsUtilities.
Trace
($"Writing handshake part {component.Key} ({component.Value}) to pipe {pipeName}");
894
CommunicationsUtilities.
Trace
($"Reading handshake from pipe {pipeName}");
904
CommunicationsUtilities.
Trace
($"Successfully connected to pipe {pipeName}...!");
1386
CommunicationsUtilities.
Trace
($"Waiting for node with pid = {_process.Id} to exit");
1414
CommunicationsUtilities.
Trace
($"Killing node with pid = {_process.Id}");
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (4)
686
CommunicationsUtilities.
Trace
($"DisconnectFromHost: Node context already removed for key: {nodeKey}");
732
CommunicationsUtilities.
Trace
($"For a host context of {hostContext}, spawning executable from {nodeLaunchData.MSBuildLocation}.");
816
CommunicationsUtilities.
Trace
($"For a host context of {hostContext}, using app host from {launchPath}.");
838
CommunicationsUtilities.
Trace
($"For a host context of {hostContext}, app host not found, falling back to dotnet.exe ({resolvedDotnetHostPath}) hosting {launchPath}.");
BackEnd\Components\Communications\RarNodeLauncher.cs (1)
46
CommunicationsUtilities.
Trace
($"Failed to launch RAR node: {ex}");
BackEnd\Node\OutOfProcNode.cs (2)
460
CommunicationsUtilities.
Trace
($"Shutting down with reason: {_shutdownReason}, and exception: {_shutdownException}.");
508
CommunicationsUtilities.
Trace
($"Failed to restore the original environment: {ex}.");
BackEnd\Node\OutOfProcServerNode.cs (5)
117
CommunicationsUtilities.
Trace
($"Starting new server node with handshake {handshake}");
265
CommunicationsUtilities.
Trace
($"Shutting down with reason: {_shutdownReason}, and exception: {_shutdownException}.");
346
CommunicationsUtilities.
Trace
($"Terminating server node due to over-provisioning: {serverNodeCount} server nodes found system-wide.");
381
CommunicationsUtilities.
Trace
($"Building with MSBuild server with command line {command.CommandLine}");
415
CommunicationsUtilities.
Trace
($"ConsoleConfigurationOverride: acceptAnsi={command.ConsoleConfiguration.AcceptAnsiColorCodes}, outputIsScreen={command.ConsoleConfiguration.OutputIsScreen}");
BackEnd\Node\ServerNamedMutex.cs (1)
50
CommunicationsUtilities.
Trace
($"Failed to open mutex '{mutexName}', treating it as not open. Exception: {ex}");
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (14)
244
CommunicationsUtilities.
Trace
($"Creating pipe '{pipeName}' with buffer size {PipeBufferSize}.");
303
CommunicationsUtilities.
Trace
($"Changing link status from {_status} to {newStatus}");
401
CommunicationsUtilities.
Trace
($"Waiting for connection {waitTimeRemaining} ms...");
435
CommunicationsUtilities.
Trace
($"Handshake failed with error: {result.ErrorMessage}");
440
CommunicationsUtilities.
Trace
(
467
CommunicationsUtilities.
Trace
($"Sent PacketVersion: {NodePacketTypeExtensions.PacketVersion}");
497
CommunicationsUtilities.
Trace
($"Client connection failed but we will wait for another connection. Exception: {e.Message}");
519
CommunicationsUtilities.
Trace
($"Client connection failed. Exiting comm thread. {e}");
593
CommunicationsUtilities.
Trace
($"Handshake for NET Host. Child host {handshakePart} for {component.Key}.");
597
CommunicationsUtilities.
Trace
(
689
CommunicationsUtilities.
Trace
($"Exception reading from server. {e}");
716
CommunicationsUtilities.
Trace
($"Incomplete header read from server. {bytesRead} of {headerByte.Length} bytes read");
748
CommunicationsUtilities.
Trace
($"Exception while deserializing packet {packetType}: {e}");
809
CommunicationsUtilities.
Trace
($"Exception while serializing packets: {e}");
Microsoft.Build.Framework (4)
BackEnd\CommunicationsUtilities.cs (1)
439
Trace
($"Node PacketVersion: {childVersion}, Local: {NodePacketTypeExtensions.PacketVersion}, Negotiated: {negotiatedPacketVersion}");
BackEnd\Handshake.cs (3)
90
CommunicationsUtilities.
Trace
($"Building handshake for node type {nodeType}, (version {handshakeVersion}): options {options}.");
108
CommunicationsUtilities.
Trace
($"Handshake salt is {handshakeSalt}");
109
CommunicationsUtilities.
Trace
($"Tools directory root is {toolsDirectory}");
Microsoft.Build.Tasks.Core (19)
AssemblyDependency\Node\OutOfProcRarNode.cs (3)
63
CommunicationsUtilities.
Trace
($"Shutting down with reason: {shutdownReason}");
67
CommunicationsUtilities.
Trace
($"Shutting down with reason: {shutdownReason}, and exception: {shutdownException}");
146
CommunicationsUtilities.
Trace
($"{endpoints.Length} RAR endpoints started.");
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...");
115
CommunicationsUtilities.
Trace
($"({_endpointId}) Completed RAR request.");
122
CommunicationsUtilities.
Trace
($"({_endpointId}) RAR client disconnected.");
132
CommunicationsUtilities.
Trace
($"({_endpointId}) Exception while executing RAR request: {e}");
AssemblyDependency\ResolveAssemblyReference.cs (1)
3446
CommunicationsUtilities.
Trace
($"RAR out-of-proc connection failed, failing back to in-proc. Exception: {ex}");
src\msbuild\src\Shared\NodePipeClient.cs (4)
40
CommunicationsUtilities.
Trace
($"Attempting connect to pipe {PipeName} with timeout {timeout} ms");
53
CommunicationsUtilities.
Trace
($"Successfully connected to pipe {PipeName}...!");
83
CommunicationsUtilities.
Trace
($"Writing handshake part {component.Key} ({component.Value}) to pipe {PipeName}");
90
CommunicationsUtilities.
Trace
($"Reading handshake from pipe {PipeName}");
src\msbuild\src\Shared\NodePipeServer.cs (4)
104
CommunicationsUtilities.
Trace
($"Waiting for connection {waitTimeRemaining} ms...");
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}");
205
CommunicationsUtilities.
Trace
($"Handshake failed. Received {handshakePart} from host not {component.Value}. Probably the host is a different MSBuild build.");
MSBuild (19)
OutOfProcTaskHostNode.cs (1)
1199
CommunicationsUtilities.
Trace
($"Nested task {taskHostConfiguration.TaskName} dispatched while {_blockedTaskCount} tasks are blocked on callbacks.");
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (14)
244
CommunicationsUtilities.
Trace
($"Creating pipe '{pipeName}' with buffer size {PipeBufferSize}.");
303
CommunicationsUtilities.
Trace
($"Changing link status from {_status} to {newStatus}");
401
CommunicationsUtilities.
Trace
($"Waiting for connection {waitTimeRemaining} ms...");
435
CommunicationsUtilities.
Trace
($"Handshake failed with error: {result.ErrorMessage}");
440
CommunicationsUtilities.
Trace
(
467
CommunicationsUtilities.
Trace
($"Sent PacketVersion: {NodePacketTypeExtensions.PacketVersion}");
497
CommunicationsUtilities.
Trace
($"Client connection failed but we will wait for another connection. Exception: {e.Message}");
519
CommunicationsUtilities.
Trace
($"Client connection failed. Exiting comm thread. {e}");
593
CommunicationsUtilities.
Trace
($"Handshake for NET Host. Child host {handshakePart} for {component.Key}.");
597
CommunicationsUtilities.
Trace
(
689
CommunicationsUtilities.
Trace
($"Exception reading from server. {e}");
716
CommunicationsUtilities.
Trace
($"Incomplete header read from server. {bytesRead} of {headerByte.Length} bytes read");
748
CommunicationsUtilities.
Trace
($"Exception while deserializing packet {packetType}: {e}");
809
CommunicationsUtilities.
Trace
($"Exception while serializing packets: {e}");
XMake.cs (4)
495
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}");
3116
CommunicationsUtilities.
Trace
($"Invalid node packet version value '{parameters[parameters.Length - 1]}': {ex.Message}");
3121
CommunicationsUtilities.
Trace
($"Node packet version value '{parameters[parameters.Length - 1]}' out of range: {ex.Message}");
3658
CommunicationsUtilities.
Trace
($"ResolveProjectPathAgainstLogicalCurrentDirectory: rebased '{projectFile}' to '{rebasedProjectFile}' via $PWD='{logicalCurrentDirectory}'.");