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