38 references to TaskId
Microsoft.Build (14)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
430MSBuildEventSource.Log.ExecuteTaskStart(_taskNode?.Name, taskLoggingContext.BuildEventContext.TaskId); 486MSBuildEventSource.Log.ExecuteTaskStop(_taskNode?.Name, taskLoggingContext.BuildEventContext.TaskId);
BackEnd\Components\RequestBuilder\TaskHost.cs (4)
361MSBuildEventSource.Log.ExecuteTaskYieldStart(_taskLoggingContext.TaskName, _taskLoggingContext.BuildEventContext.TaskId); 390MSBuildEventSource.Log.ExecuteTaskYieldStop(_taskLoggingContext.TaskName, _taskLoggingContext.BuildEventContext.TaskId); 391MSBuildEventSource.Log.ExecuteTaskReacquireStart(_taskLoggingContext.TaskName, _taskLoggingContext.BuildEventContext.TaskId); 393MSBuildEventSource.Log.ExecuteTaskReacquireStop(_taskLoggingContext.TaskName, _taskLoggingContext.BuildEventContext.TaskId);
BuildCheck\Infrastructure\BuildEventsProcessor.cs (2)
35: this(context.ProjectContextId, context.TargetId, context.TaskId) 43/// Keeps track of in-flight tasks. Keyed by task ID as passed in <see cref="BuildEventContext.TaskId"/>.
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
1075Write(buildEventContext.TaskId);
Logging\ParallelLogger\ParallelConsoleLogger.cs (5)
951WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", e.Message, e.BuildEventContext.TaskId), prefixAlreadyWritten); 995WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", e.Message, e.BuildEventContext.TaskId), prefixAlreadyWritten); 1269if (e.BuildEventContext.TaskId != BuildEventContext.InvalidTaskId && e.File == null) 1282if ((IsVerbosityAtLeast(LoggerVerbosity.Diagnostic) || _showEventId) && e.BuildEventContext.TaskId != BuildEventContext.InvalidTaskId) 1285WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", nonNullMessage, e.BuildEventContext.TaskId), prefixAlreadyWritten, prefixAdjustment);
Microsoft.Build.Engine.UnitTests (4)
BuildEventArgsSerialization_Tests.cs (1)
1193return $"{context.BuildRequestId} {context.NodeId} {context.ProjectContextId} {context.ProjectInstanceId} {context.SubmissionId} {context.TargetId} {context.TaskId}";
ConsoleLogger_Tests.cs (1)
618message = context + ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", "my 1337 message", be.BuildEventContext.TaskId);
Graph\IsolateProjects_Tests.cs (1)
219logger.Errors.First().BuildEventContext.TaskId.ShouldNotBe(BuildEventContext.InvalidTaskId);
Graph\ResultCacheBasedBuilds_Tests.cs (1)
404results["1"].Logger.Errors.First().BuildEventContext.TaskId.ShouldNotBe(BuildEventContext.InvalidTaskId);
Microsoft.Build.Framework (5)
BinaryTranslator.cs (1)
1163_writer.Write(value.TaskId);
BinaryWriterExtensions.cs (1)
93writer.Write(context.TaskId);
BuildEventContext.cs (2)
305&& _taskId == buildEventContext.TaskId 313return $"Node={NodeId} Submission={SubmissionId} ProjectContext={ProjectContextId} ProjectInstance={ProjectInstanceId} Eval={EvaluationId} Target={TargetId} Task={TaskId}";
ProjectStartedEventArgs.cs (1)
366writer.Write((Int32)parentProjectBuildEventContext.TaskId);
Microsoft.Build.Framework.UnitTests (2)
EventArgs_Tests.cs (2)
115startedEvent.ParentProjectBuildEventContext.TaskId.ShouldBe(0); 123startedEvent.BuildEventContext.TaskId.ShouldBe(6);
Microsoft.Build.Tasks.UnitTests (6)
MSBuild_Tests.cs (6)
1478var expectedTaskId = logger.TaskStartedEvents.First(t => t.TaskName == "MSBuild").BuildEventContext.TaskId; 1480.Where(p => p.ParentProjectBuildEventContext?.TaskId > 0) 1482.ParentProjectBuildEventContext.TaskId; 1514var expectedTaskId = logger.TaskStartedEvents.First(t => t.TaskName == nameof(BuildProjectFileTask)).BuildEventContext.TaskId; 1516.Where(p => p.ParentProjectBuildEventContext?.TaskId > 0) 1518.ParentProjectBuildEventContext.TaskId;
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
173e.BuildEventContext.TaskId
XmlFileLogger (6)
ObjectModel\Build.cs (5)
90var task = target.GetTaskById(buildMessageEventArgs.BuildEventContext.TaskId); 103var task = target.GetTaskById(taskCommandLineEventArgs.BuildEventContext.TaskId); 148if (buildMessageEventArgs.BuildEventContext.TaskId > 0) 152.GetTaskById(buildMessageEventArgs.BuildEventContext.TaskId); 258var task = target.GetTaskById(taskFinishedEventArgs.BuildEventContext.TaskId);
ObjectModel\Task.cs (1)
30Id = taskStartedEvent.BuildEventContext.TaskId;