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