31 references to TargetId
Microsoft.Build (8)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
741targetBuildEventContext.TargetId,
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
35: this(context.ProjectContextId, context.TargetId, context.TaskId)
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
1074Write(buildEventContext.TargetId);
Logging\ParallelLogger\ParallelConsoleLogger.cs (3)
913WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TargetMessageWithId", e.Message, e.BuildEventContext.TargetId), true); 1342WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TargetMessageWithId", targetName, e.BuildEventContext.TargetId), prefixAlreadyWritten); 1453targetName = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TargetMessageWithId", targetStartedEvent.TargetName, targetStartedEvent.ProjectBuildEventContext.TargetId);
Logging\ParallelLogger\ParallelLoggerHelpers.cs (2)
262&& (contextX.TargetId == contextY.TargetId);
Microsoft.Build.Engine.UnitTests (3)
BuildEventArgsSerialization_Tests.cs (1)
1193return $"{context.BuildRequestId} {context.NodeId} {context.ProjectContextId} {context.ProjectInstanceId} {context.SubmissionId} {context.TargetId} {context.TaskId}";
Graph\IsolateProjects_Tests.cs (1)
218logger.Errors.First().BuildEventContext.TargetId.ShouldNotBe(BuildEventContext.InvalidTargetId);
Graph\ResultCacheBasedBuilds_Tests.cs (1)
403results["1"].Logger.Errors.First().BuildEventContext.TargetId.ShouldNotBe(BuildEventContext.InvalidTargetId);
Microsoft.Build.Framework (5)
BinaryTranslator.cs (1)
1162_writer.Write(value.TargetId);
BinaryWriterExtensions.cs (1)
92writer.Write(context.TargetId);
BuildEventContext.cs (2)
304&& _targetId == buildEventContext.TargetId 313return $"Node={NodeId} Submission={SubmissionId} ProjectContext={ProjectContextId} ProjectInstance={ProjectInstanceId} Eval={EvaluationId} Target={TargetId} Task={TaskId}";
ProjectStartedEventArgs.cs (1)
365writer.Write((Int32)parentProjectBuildEventContext.TargetId);
Microsoft.Build.Framework.UnitTests (2)
EventArgs_Tests.cs (2)
114startedEvent.ParentProjectBuildEventContext.TargetId.ShouldBe(0); 122startedEvent.BuildEventContext.TargetId.ShouldBe(5);
TaskUsageLogger (2)
TaskUsageLogger.cs (2)
155_targetIdsToNames[e.BuildEventContext.TargetId] = e.TargetName; 169_targetIdsToNames[e.BuildEventContext.TargetId],
XmlFileLogger (11)
ObjectModel\Build.cs (10)
89var target = project.GetTargetById(buildMessageEventArgs.BuildEventContext.TargetId); 102var target = project.GetTargetById(taskCommandLineEventArgs.BuildEventContext.TargetId); 118var target = project.GetTargetById(buildMessageEventArgs.BuildEventContext.TargetId); 135var target = project.GetTargetById(buildMessageEventArgs.BuildEventContext.TargetId); 151.GetTargetById(buildMessageEventArgs.BuildEventContext.TargetId) 154else if (buildMessageEventArgs.BuildEventContext.TargetId > 0) 157.GetTargetById(buildMessageEventArgs.BuildEventContext.TargetId); 174var target = project.GetTargetById(taskStartedEventArgs.BuildEventContext.TargetId); 235var target = project.GetTargetById(targetFinishedEventArgs.BuildEventContext.TargetId); 257var target = project.GetTargetById(taskFinishedEventArgs.BuildEventContext.TargetId);
ObjectModel\Target.cs (1)
108Id = e.BuildEventContext.TargetId;