295 writes to BuildEventContext
Microsoft.Build (70)
BackEnd\BuildManager\BuildManager.cs (1)
1393
submissionStartedEvent.
BuildEventContext
= buildEventContext;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
292
BuildEventContext
= new BuildEventContext(nodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId)
BackEnd\Components\Logging\LoggingContext.cs (1)
157
BuildEventContext
= _eventContext
BackEnd\Components\Logging\LoggingService.cs (5)
1010
warning.
BuildEventContext
= buildEventContext;
1581
BuildEventContext
= warningEvent.BuildEventContext,
1603
BuildEventContext
= warningEvent.BuildEventContext,
1626
BuildEventContext
= warningEvent.BuildEventContext,
1647
BuildEventContext
= warningEvent.BuildEventContext,
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (13)
174
buildEvent.
BuildEventContext
= buildEventContext;
326
buildEvent.
BuildEventContext
= buildEventContext;
433
BuildEventContext
= projectEvaluationEventContext,
463
BuildEventContext
= projectEvaluationEventContext,
594
buildEvent.
BuildEventContext
= projectBuildEventContext;
615
buildEvent.
BuildEventContext
= projectBuildEventContext;
658
buildEvent.
BuildEventContext
= targetBuildEventContext;
690
buildEvent.
BuildEventContext
= targetBuildEventContext;
716
buildEvent.
BuildEventContext
= taskBuildEventContext;
753
buildEvent.
BuildEventContext
= taskBuildEventContext;
784
buildEvent.
BuildEventContext
= taskBuildEventContext;
805
BuildEventContext
= buildEventContext,
826
responseFileUsedEvent.
BuildEventContext
= buildEventContext;
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
107
BuildEventContext
= projectLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (1)
168
buildArgs.
BuildEventContext
= _loggingContext.BuildEventContext;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
307
args.
BuildEventContext
= buildEventContext;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
561
BuildEventContext
= _projectLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
388
BuildEventContext
= projectLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (1)
239
BuildEventContext
= _buildEventContext,
BackEnd\Components\RequestBuilder\TaskHost.cs (5)
456
warningEvent.
BuildEventContext
= _taskLoggingContext.BuildEventContext;
464
e.
BuildEventContext
= _taskLoggingContext.BuildEventContext;
508
e.
BuildEventContext
= _taskLoggingContext.BuildEventContext;
549
e.
BuildEventContext
= _taskLoggingContext.BuildEventContext;
590
e.
BuildEventContext
= _taskLoggingContext.BuildEventContext;
BackEnd\Shared\EventsCreatorHelper.cs (3)
28
buildEvent.
BuildEventContext
= buildEventContext;
59
buildEvent.
BuildEventContext
= buildEventContext;
90
buildEvent.
BuildEventContext
= buildEventContext;
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
168
{
BuildEventContext
= checkContext.BuildEventContext };
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (3)
121
eventArgs.
BuildEventContext
= checkContext.BuildEventContext!;
463
new(checkEventStats) {
BuildEventContext
= loggingContext.BuildEventContext };
569
deferredArgs.
BuildEventContext
= deferredArgs.BuildEventContext!.WithInstanceIdAndContextId(buildEventContext);
BuildCheck\Infrastructure\CheckWrapper.cs (1)
161
eventArgs.
BuildEventContext
= checkContext.BuildEventContext;
Construction\Solution\SolutionProjectGenerator.cs (1)
1045
BuildEventContext
= _projectBuildEventContext,
Definition\ProjectProperty.cs (2)
109
args.
BuildEventContext
= loggingContext.BuildEventContext;
128
args.
BuildEventContext
= loggingContext.BuildEventContext;
Evaluation\Evaluator.cs (7)
1704
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
1811
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
1990
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2051
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2192
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2223
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2278
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (4)
223
args.
BuildEventContext
= _evaluationLoggingContext.BuildEventContext;
242
args.
BuildEventContext
= _evaluationLoggingContext.BuildEventContext;
293
args.
BuildEventContext
= _evaluationLoggingContext.BuildEventContext;
331
{
BuildEventContext
= _evaluationLoggingContext.BuildEventContext, };
Instance\ProjectPropertyInstance.cs (2)
105
args.
BuildEventContext
= envProperty.loggingContext.BuildEventContext;
119
args.
BuildEventContext
= envProperty.loggingContext.BuildEventContext;
Instance\TaskFactoryLoggingHost.cs (4)
168
e.
BuildEventContext
= _loggingContext.BuildEventContext;
189
e.
BuildEventContext
= _loggingContext.BuildEventContext;
210
e.
BuildEventContext
= _loggingContext.BuildEventContext;
231
e.
BuildEventContext
= _loggingContext.BuildEventContext;
Logging\BinaryLogger\BinaryLogger.cs (1)
306
args.
BuildEventContext
= BuildEventContext.Invalid;
Logging\BinaryLogger\BuildEventArgsReader.cs (6)
927
e.
BuildEventContext
= fields.BuildEventContext;
979
e.
BuildEventContext
= fields.BuildEventContext;
1033
e.
BuildEventContext
= fields.BuildEventContext;
1049
e.
BuildEventContext
= fields.BuildEventContext;
1126
e.
BuildEventContext
= fields.BuildEventContext;
1426
buildEventArgs.
BuildEventContext
= fields.BuildEventContext;
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
252
buildMessageEventArgs.
BuildEventContext
= e.BuildEventContext ?? BuildEventContext.Invalid;
LogMessagePacketBase.cs (2)
1380
args.
BuildEventContext
= buildEventContext;
1394
args.
BuildEventContext
= buildEventContext;
Microsoft.Build.CommandLine.UnitTests (12)
TerminalLogger_Tests.cs (12)
138
BuildEventContext
= MakeBuildEventContext(),
146
BuildEventContext
= MakeBuildEventContext(),
154
BuildEventContext
= MakeBuildEventContext(),
162
BuildEventContext
= MakeBuildEventContext(),
170
BuildEventContext
= MakeBuildEventContext(),
178
BuildEventContext
= MakeBuildEventContext(),
186
BuildEventContext
= MakeBuildEventContext(),
196
BuildEventContext
= MakeBuildEventContext(),
204
BuildEventContext
= MakeBuildEventContext(),
212
BuildEventContext
= MakeBuildEventContext(),
220
BuildEventContext
= MakeBuildEventContext(),
229
BuildEventContext
= MakeBuildEventContext(),
Microsoft.Build.Engine.UnitTests (157)
BackEnd\EventSourceSink_Tests.cs (2)
759
BuildEventContext
= new BuildEventContext(1, 2, 3, 4, 5, 6)
787
BuildEventContext
= s_buildWarning.BuildEventContext
BackEnd\LoggingService_Tests.cs (2)
796
warningArgs.
BuildEventContext
= new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidProjectContextId, 5, 6);
993
buildEvent.
BuildEventContext
= projectStarted;
BackEnd\LoggingServicesLogMethod_Tests.cs (10)
1293
BuildEventContext
= buildEventContext,
1582
targetEvent.
BuildEventContext
= s_targetBuildEventContext;
1605
buildEvent.
BuildEventContext
= s_targetBuildEventContext;
1628
taskEvent.
BuildEventContext
= s_buildEventContext;
1650
taskEvent.
BuildEventContext
= s_buildEventContext;
1670
projectEvent.
BuildEventContext
= projectContext;
1695
buildEvent.
BuildEventContext
= generatedContext;
1714
buildMessageEvent.
BuildEventContext
= s_buildEventContext;
1741
buildEvent.
BuildEventContext
= s_buildEventContext;
1768
buildEvent.
BuildEventContext
= s_buildEventContext;
BackEnd\NodePackets_Tests.cs (9)
135
result.
BuildEventContext
= CreateBuildEventContext();
157
result.
BuildEventContext
= CreateBuildEventContext();
227
BuildEventContext
= CreateBuildEventContext(),
262
new EnvironmentVariableReadEventArgs("env", "message", "file", 0, 0) {
BuildEventContext
= new BuildEventContext(1, 2, 3, 4, 5, 6) },
294
BuildEventContext
= new BuildEventContext(1, 2, 3, 4, 5, 6, 7)
300
BuildEventContext
= new BuildEventContext(1, 2, 3, 4, 5, 6, 7)
306
BuildEventContext
= new BuildEventContext(1, 2, 3, 4, 5, 6, 7)
312
BuildEventContext
= new BuildEventContext(1, 2, 3, 4, 5, 6, 7)
318
BuildEventContext
= new BuildEventContext(1, 2, 3, 4, 5, 6, 7)
BuildEventArgsDataEnumeration.cs (3)
27
BuildEventContext
= BuildEventContext.Invalid,
54
BuildEventContext
= BuildEventContext.Invalid,
92
BuildEventContext
= BuildEventContext.Invalid,
BuildEventArgsSerialization_Tests.cs (13)
93
args.
BuildEventContext
= new BuildEventContext(1, 2, 3, 4, 5, 6);
165
args.
BuildEventContext
= new BuildEventContext(1, 2, 3, 4, 5, 6);
266
args.
BuildEventContext
= new BuildEventContext(4, 5, 6, 7);
346
BuildEventContext
= withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null,
419
BuildEventContext
= withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null,
495
BuildEventContext
= withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null,
583
BuildEventContext
= withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null,
678
BuildEventContext
= withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null,
750
BuildEventContext
= BuildEventContext.Invalid,
767
BuildEventContext
= BuildEventContext.Invalid,
790
BuildEventContext
= BuildEventContext.Invalid,
823
BuildEventContext
= BuildEventContext.Invalid,
846
BuildEventContext
= BuildEventContext.Invalid,
ConfigureableForwardingLogger_Tests.cs (4)
53
_error.
BuildEventContext
= context;
54
_warning.
BuildEventContext
= context;
55
_targetStarted.
BuildEventContext
= context;
56
_targetFinished.
BuildEventContext
= context;
ConsoleLogger_Tests.cs (114)
493
bse.
BuildEventContext
= buildEventContext;
495
pse.
BuildEventContext
= buildEventContext;
497
trse.
BuildEventContext
= buildEventContext;
499
tase.
BuildEventContext
= buildEventContext;
501
bmea.
BuildEventContext
= buildEventContext;
503
bwea.
BuildEventContext
= buildEventContext;
505
beea.
BuildEventContext
= buildEventContext;
507
trfea.
BuildEventContext
= buildEventContext;
509
tafea.
BuildEventContext
= buildEventContext;
511
pfea.
BuildEventContext
= buildEventContext;
513
bfea.
BuildEventContext
= buildEventContext;
515
mcea.
BuildEventContext
= buildEventContext;
610
BuildEventContext
= new BuildEventContext(1, 2, 3, 4)
680
buildEventArgs.
BuildEventContext
= new BuildEventContext(1, 2, 3, 4);
724
bse.
BuildEventContext
= buildEventContext;
728
pse.
BuildEventContext
= buildEventContext;
732
trse.
BuildEventContext
= buildEventContext;
736
tase.
BuildEventContext
= buildEventContext;
740
bmea.
BuildEventContext
= buildEventContext;
744
tafea.
BuildEventContext
= buildEventContext;
748
trfea.
BuildEventContext
= buildEventContext;
752
pfea.
BuildEventContext
= buildEventContext;
756
bfea.
BuildEventContext
= buildEventContext;
777
bse.
BuildEventContext
= buildEventContext;
781
pse.
BuildEventContext
= buildEventContext;
785
trse.
BuildEventContext
= buildEventContext;
789
tase.
BuildEventContext
= buildEventContext;
796
beea.
BuildEventContext
= buildEventContext;
800
tafea.
BuildEventContext
= buildEventContext;
804
trfea.
BuildEventContext
= buildEventContext;
808
pfea.
BuildEventContext
= buildEventContext;
812
bfea.
BuildEventContext
= buildEventContext;
853
bse.
BuildEventContext
= buildEventContext;
857
pse.
BuildEventContext
= buildEventContext;
861
trse.
BuildEventContext
= buildEventContext;
865
tase.
BuildEventContext
= buildEventContext;
873
beea.
BuildEventContext
= buildEventContext;
877
tafea.
BuildEventContext
= buildEventContext;
881
trfea.
BuildEventContext
= buildEventContext;
885
pfea.
BuildEventContext
= buildEventContext;
889
bfea.
BuildEventContext
= buildEventContext;
930
bse.
BuildEventContext
= buildEventContext;
934
pse.
BuildEventContext
= buildEventContext;
938
trse.
BuildEventContext
= buildEventContext;
942
tase.
BuildEventContext
= buildEventContext;
946
bmea.
BuildEventContext
= buildEventContext;
950
tafea.
BuildEventContext
= buildEventContext;
954
trfea.
BuildEventContext
= buildEventContext;
958
pfea.
BuildEventContext
= buildEventContext;
962
bfea.
BuildEventContext
= buildEventContext;
986
bse.
BuildEventContext
= buildEventContext;
990
pse.
BuildEventContext
= buildEventContext;
994
trse.
BuildEventContext
= buildEventContext;
998
tase.
BuildEventContext
= buildEventContext;
1005
beea.
BuildEventContext
= buildEventContext;
1009
tafea.
BuildEventContext
= buildEventContext;
1013
trfea.
BuildEventContext
= buildEventContext;
1017
pfea.
BuildEventContext
= buildEventContext;
1021
bfea.
BuildEventContext
= buildEventContext;
1061
bse.
BuildEventContext
= buildEventContext;
1065
pse.
BuildEventContext
= buildEventContext;
1069
trse.
BuildEventContext
= buildEventContext;
1073
tase.
BuildEventContext
= buildEventContext;
1081
beea.
BuildEventContext
= buildEventContext;
1085
tafea.
BuildEventContext
= buildEventContext;
1089
trfea.
BuildEventContext
= buildEventContext;
1093
pfea.
BuildEventContext
= buildEventContext;
1097
bfea.
BuildEventContext
= buildEventContext;
1137
bse.
BuildEventContext
= buildEventContext;
1141
pse.
BuildEventContext
= buildEventContext;
1145
trse.
BuildEventContext
= buildEventContext;
1149
tase.
BuildEventContext
= buildEventContext;
1157
beea.
BuildEventContext
= buildEventContext;
1161
tafea.
BuildEventContext
= buildEventContext;
1165
trfea.
BuildEventContext
= buildEventContext;
1169
pfea.
BuildEventContext
= buildEventContext;
1173
bfea.
BuildEventContext
= buildEventContext;
1393
c.
BuildEventContext
= new BuildEventContext(1, 1, 1, 1);
1441
buildEvent.
BuildEventContext
= new BuildEventContext(1, 2, 3, 4);
1697
buildEvent.
BuildEventContext
= new BuildEventContext(1, 2, 3, 4);
1775
buildEvent.
BuildEventContext
= new BuildEventContext(1, 2, 3, 4);
1809
buildEvent.
BuildEventContext
= new BuildEventContext(1, 2, 3, 4);
2136
project1Started.
BuildEventContext
= new BuildEventContext(1, 1, 1, 1);
2139
targetStarted1.
BuildEventContext
= project1Started.BuildEventContext;
2144
taskStarted1.
BuildEventContext
= project1Started.BuildEventContext;
2149
messsage1.
BuildEventContext
= project1Started.BuildEventContext;
2153
taskFinished1.
BuildEventContext
= project1Started.BuildEventContext;
2158
targetFinished1.
BuildEventContext
= project1Started.BuildEventContext;
2164
project2Started.
BuildEventContext
= new BuildEventContext(2, 2, 2, 2);
2167
targetStarted2.
BuildEventContext
= project2Started.BuildEventContext;
2172
taskStarted2.
BuildEventContext
= project2Started.BuildEventContext;
2177
messsage2.
BuildEventContext
= project2Started.BuildEventContext;
2181
taskFinished2.
BuildEventContext
= project2Started.BuildEventContext;
2186
targetFinished2.
BuildEventContext
= project2Started.BuildEventContext;
2191
finished2.
BuildEventContext
= project2Started.BuildEventContext;
2196
finished1.
BuildEventContext
= project1Started.BuildEventContext;
2250
messsage1.
BuildEventContext
= new BuildEventContext(1, 1, 1, 1);
2264
messsage2.
BuildEventContext
= new BuildEventContext(1, 1, 1, 1);
2278
messsage2.
BuildEventContext
= new BuildEventContext(1, 1, 1, 1);
2282
project.
BuildEventContext
= messsage1.BuildEventContext;
2314
project.
BuildEventContext
= context;
2318
targetStarted1.
BuildEventContext
= context;
2322
messsage1.
BuildEventContext
= context;
2344
project.
BuildEventContext
= context;
2348
project2.
BuildEventContext
= context2;
2352
targetStarted1.
BuildEventContext
= context;
2356
targetStarted2.
BuildEventContext
= context2;
2360
messsage1.
BuildEventContext
= context;
2362
messsage2.
BuildEventContext
= context2;
2364
messsage3.
BuildEventContext
= context;
2412
project.
BuildEventContext
= context;
2416
targetStarted1.
BuildEventContext
= context;
2420
messsage1.
BuildEventContext
= context;
2424
projectFinished.
BuildEventContext
= context;
Microsoft.Build.Framework (2)
AssemblyLoadBuildEventArgs.cs (1)
66
BuildEventContext
= reader.ReadOptionalBuildEventContext();
TaskParameterEventArgs.cs (1)
131
BuildEventContext
= reader.ReadOptionalBuildEventContext();
Microsoft.Build.Framework.UnitTests (54)
CustomEventArgSerialization_Tests.cs (47)
62
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
79
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
95
genericEvent.
BuildEventContext
= null;
104
newGenericEvent.
BuildEventContext
= new BuildEventContext(1, 3, 4, 5);
128
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
145
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
162
genericEvent.
BuildEventContext
= null;
179
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
213
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
228
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
243
genericEvent.
BuildEventContext
= null;
261
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
279
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
297
genericEvent.
BuildEventContext
= null;
331
messageEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
348
messageEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
365
messageEvent.
BuildEventContext
= null;
384
criticalMessageEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
402
criticalMessageEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
419
criticalMessageEvent.
BuildEventContext
= null;
438
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
455
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
472
genericEvent.
BuildEventContext
= null;
489
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
523
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
541
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
560
genericEvent.
BuildEventContext
= null;
590
genericEvent.
BuildEventContext
= new BuildEventContext(7, 8, 9, 10);
654
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
671
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
688
genericEvent.
BuildEventContext
= null;
721
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
739
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
757
genericEvent.
BuildEventContext
= null;
787
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
804
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
822
genericEvent.
BuildEventContext
= null;
851
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
868
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
886
genericEvent.
BuildEventContext
= null;
916
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
934
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
952
genericEvent.
BuildEventContext
= null;
984
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
997
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
1014
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
1027
genericEvent.
BuildEventContext
= new BuildEventContext(5, 4, 3, 2);
EventArgs_Tests.cs (2)
34
s_baseGenericEvent.
BuildEventContext
= new BuildEventContext(9, 8, 7, 6);
77
startedEvent.
BuildEventContext
= currentBuildEventContext;
ExtendedBuildEventArgs_Tests.cs (5)
29
BuildEventContext
= withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null,
67
BuildEventContext
= withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null,
106
BuildEventContext
= withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null,
144
BuildEventContext
= withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null,
181
BuildEventContext
= withOptionalData ? new BuildEventContext(1, 2, 3, 4, 5, 6, 7) : null,
303 references to BuildEventContext
Microsoft.Build (154)
BackEnd\BuildManager\BuildManager.cs (9)
994
BuildResult result = _resultsCache!.GetResultsForConfiguration(projectStartedEvent.Value.
BuildEventContext
!.ProjectInstanceId);
2437
? buildEventArgs.
BuildEventContext
!
2847
if (_projectStartedEvents.TryGetValue(e.
BuildEventContext
!.SubmissionId, out var originalArgs))
2849
if (originalArgs.
BuildEventContext
!.Equals(e.
BuildEventContext
))
2851
_projectStartedEvents.Remove(e.
BuildEventContext
.SubmissionId);
2852
if (_buildSubmissions.TryGetValue(e.
BuildEventContext
.SubmissionId, out var submission))
2872
if (!_projectStartedEvents.ContainsKey(e.
BuildEventContext
!.SubmissionId))
2874
_projectStartedEvents[e.
BuildEventContext
.SubmissionId] = e;
BackEnd\Components\Logging\LoggingService.cs (26)
990
BuildEventContext buildEventContext = buildEvent?.
BuildEventContext
?? BuildEventContext.Invalid;
1253
if ((warningEvent = buildEvent as BuildWarningEventArgs) != null && warningEvent.
BuildEventContext
!= null && warningEvent.
BuildEventContext
.ProjectContextId != BuildEventContext.InvalidProjectContextId)
1255
warningEvent.ProjectFile = GetAndVerifyProjectFileFromContext(warningEvent.
BuildEventContext
);
1257
else if ((errorEvent = buildEvent as BuildErrorEventArgs) != null && errorEvent.
BuildEventContext
!= null && errorEvent.
BuildEventContext
.ProjectContextId != BuildEventContext.InvalidProjectContextId)
1259
errorEvent.ProjectFile = GetAndVerifyProjectFileFromContext(errorEvent.
BuildEventContext
);
1261
else if ((messageEvent = buildEvent as BuildMessageEventArgs) != null && messageEvent.
BuildEventContext
!= null && messageEvent.
BuildEventContext
.ProjectContextId != BuildEventContext.InvalidProjectContextId)
1263
messageEvent.ProjectFile = GetAndVerifyProjectFileFromContext(messageEvent.
BuildEventContext
);
1359
if (!_projectFileMap.ContainsKey(projectStartedEventArgs.
BuildEventContext
.ProjectContextId))
1361
_projectFileMap[projectStartedEventArgs.
BuildEventContext
.ProjectContextId] = projectStartedEventArgs.ProjectFile;
1377
return GetWarningsConfigKey(buildEventArgs.
BuildEventContext
);
1581
BuildEventContext = warningEvent.
BuildEventContext
,
1603
BuildEventContext = warningEvent.
BuildEventContext
,
1626
BuildEventContext = warningEvent.
BuildEventContext
,
1647
BuildEventContext = warningEvent.
BuildEventContext
,
1656
int submissionId = errorEvent.
BuildEventContext
?.SubmissionId ?? BuildEventContext.InvalidSubmissionId;
1672
AddWarningsAsErrors(projectStartedEvent.
BuildEventContext
, projectStartedEvent.WarningsAsErrors);
1673
AddWarningsAsMessages(projectStartedEvent.
BuildEventContext
, projectStartedEvent.WarningsAsMessages);
1674
AddWarningsNotAsErrors(projectStartedEvent.
BuildEventContext
, projectStartedEvent.WarningsNotAsErrors);
1677
if (buildEventArgs is ProjectFinishedEventArgs projectFinishedEvent && projectFinishedEvent.
BuildEventContext
!= null)
1957
if (_warningsAsMessagesByProject != null && warningEvent.
BuildEventContext
!= null && warningEvent.
BuildEventContext
.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId)
1994
if (_warningsAsErrorsByProject != null && warningEvent.
BuildEventContext
!= null && warningEvent.
BuildEventContext
.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
514
return args.
BuildEventContext
;
BackEnd\Components\Logging\ProjectLoggingContext.cs (2)
100
: base(nodeLoggingContext, projectStarted.
BuildEventContext
)
180
return args.
BuildEventContext
;
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (10)
76
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
79
_buildCheckManager.EndProjectEvaluation(eventArgs.
BuildEventContext
!);
87
var checkContext = _checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!);
101
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
106
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
119
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
124
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
129
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
153
_buildCheckManager.ProcessBuildFinished(_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!));
183
private BuildEventContext GetBuildEventContext(BuildEventArgs e) => e.
BuildEventContext
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (6)
569
deferredArgs.BuildEventContext = deferredArgs.
BuildEventContext
!.WithInstanceIdAndContextId(buildEventContext);
602
eventArgs.
BuildEventContext
== null ||
604
eventArgs.
BuildEventContext
.EvaluationId == BuildEventContext.InvalidEvaluationId ||
606
eventArgs.
BuildEventContext
.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId ||
616
if (!_deferredEvalDiagnostics.TryGetValue(eventArgs.
BuildEventContext
.EvaluationId, out var list))
619
_deferredEvalDiagnostics[eventArgs.
BuildEventContext
.EvaluationId] = list;
BuildCheck\Infrastructure\BuildEventsProcessor.cs (9)
68
evaluationFinishedEventArgs.
BuildEventContext
?.ProjectInstanceId,
82
evaluationFinishedEventArgs.
BuildEventContext
?.ProjectInstanceId,
130
if (taskStartedEventArgs.
BuildEventContext
is not null)
146
projectConfigurationId: taskStartedEventArgs.
BuildEventContext
.ProjectInstanceId,
153
_tasksBeingExecuted.Add(new TaskKey(taskStartedEventArgs.
BuildEventContext
), taskData);
167
if (taskFinishedEventArgs?.
BuildEventContext
is not null)
169
TaskKey taskKey = new TaskKey(taskFinishedEventArgs.
BuildEventContext
);
197
if (taskParameterEventArgs.
BuildEventContext
is not null &&
198
_tasksBeingExecuted.TryGetValue(new TaskKey(taskParameterEventArgs.
BuildEventContext
), out ExecutingTaskData taskData))
Logging\BinaryLogger\BuildEventArgsWriter.cs (3)
252
buildMessageEventArgs.BuildEventContext = e.
BuildEventContext
?? BuildEventContext.Invalid;
679
Write(e.
BuildEventContext
);
837
if (e.
BuildEventContext
!= null)
Logging\ParallelLogger\ParallelConsoleLogger.cs (81)
439
TargetStartedEventMinimumFields targetEvent = _buildEventManager.GetTargetStartedEvent(errorWarningEventArgs.
BuildEventContext
);
447
ErrorWarningSummaryDictionaryKey key = new ErrorWarningSummaryDictionaryKey(errorWarningEventArgs.
BuildEventContext
, targetName);
514
ErrorUtilities.VerifyThrowArgumentNull(e.
BuildEventContext
, "BuildEventContext");
524
counter.AddEventStarted(e.TargetNames, e.
BuildEventContext
, e.Timestamp, s_compareContextNodeId);
528
if (_deferredMessages.TryGetValue(e.
BuildEventContext
, out var deferredMessages))
538
_deferredMessages.Remove(e.
BuildEventContext
);
548
DisplayDeferredProjectStartedEvent(e.
BuildEventContext
);
562
var projectKey = (e.
BuildEventContext
.NodeId, e.
BuildEventContext
.ProjectContextId);
576
var evaluationKey = GetEvaluationKey(e.
BuildEventContext
);
654
ErrorUtilities.VerifyThrowArgumentNull(e.
BuildEventContext
, "BuildEventContext");
657
ProjectStartedEventMinimumFields startedEvent = _buildEventManager.GetProjectStartedEvent(e.
BuildEventContext
);
664
counter.AddEventFinished(startedEvent.TargetNames, e.
BuildEventContext
, e.Timestamp);
672
_lastProjectFullKey = GetFullProjectKey(e.
BuildEventContext
);
676
WriteLinePrefix(e.
BuildEventContext
, e.Timestamp, false);
717
ShownBuildEventContext(e.
BuildEventContext
);
722
_buildEventManager.RemoveProjectStartedEvent(e.
BuildEventContext
);
749
WriteLinePrefix(e.
BuildEventContext
, e.Timestamp, false);
751
ShownBuildEventContext(e.
BuildEventContext
);
815
WriteLinePrefix(e.
BuildEventContext
, e.Timestamp, false);
817
ShownBuildEventContext(e.
BuildEventContext
);
844
ErrorUtilities.VerifyThrowArgumentNull(e.
BuildEventContext
, "BuildEventContext");
854
counter.AddEventStarted(null, e.
BuildEventContext
, e.Timestamp, s_compareContextNodeIdTargetId);
865
ErrorUtilities.VerifyThrowArgumentNull(e.
BuildEventContext
, "BuildEventContext");
871
counter.AddEventFinished(null, e.
BuildEventContext
, e.Timestamp);
877
DisplayDeferredTargetStartedEvent(e.
BuildEventContext
);
881
TargetStartedEventMinimumFields startedEvent = _buildEventManager.GetTargetStartedEvent(e.
BuildEventContext
);
908
_lastProjectFullKey = GetFullProjectKey(e.
BuildEventContext
);
909
WriteLinePrefix(e.
BuildEventContext
, e.Timestamp, false);
913
WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TargetMessageWithId", e.Message, e.
BuildEventContext
.TargetId), true);
922
ShownBuildEventContext(e.
BuildEventContext
);
927
_buildEventManager.RemoveTargetStartedEvent(e.
BuildEventContext
);
937
ErrorUtilities.VerifyThrowArgumentNull(e.
BuildEventContext
, "BuildEventContext");
943
DisplayDeferredStartedEvents(e.
BuildEventContext
);
947
bool prefixAlreadyWritten = WriteTargetMessagePrefix(e, e.
BuildEventContext
, e.Timestamp);
951
WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", e.Message, e.
BuildEventContext
.TaskId), prefixAlreadyWritten);
960
ShownBuildEventContext(e.
BuildEventContext
);
967
counter.AddEventStarted(null, e.
BuildEventContext
, e.Timestamp, null);
978
ErrorUtilities.VerifyThrowArgumentNull(e.
BuildEventContext
, "BuildEventContext");
983
counter.AddEventFinished(null, e.
BuildEventContext
, e.Timestamp);
991
bool prefixAlreadyWritten = WriteTargetMessagePrefix(e, e.
BuildEventContext
, e.Timestamp);
995
WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", e.Message, e.
BuildEventContext
.TaskId), prefixAlreadyWritten);
1003
ShownBuildEventContext(e.
BuildEventContext
);
1014
if (e.
BuildEventContext
!= null)
1016
var key = (e.
BuildEventContext
.NodeId, e.
BuildEventContext
.ProjectContextId);
1028
ErrorUtilities.VerifyThrowArgumentNull(e.
BuildEventContext
, "BuildEventContext");
1035
_buildEventManager.SetErrorWarningFlagOnCallStack(e.
BuildEventContext
);
1037
TargetStartedEventMinimumFields targetStartedEvent = _buildEventManager.GetTargetStartedEvent(e.
BuildEventContext
);
1044
DisplayDeferredStartedEvents(e.
BuildEventContext
);
1052
WriteLinePrefix(e.
BuildEventContext
, e.Timestamp, false);
1057
ShownBuildEventContext(e.
BuildEventContext
);
1074
ErrorUtilities.VerifyThrowArgumentNull(e.
BuildEventContext
, "BuildEventContext");
1081
_buildEventManager.SetErrorWarningFlagOnCallStack(e.
BuildEventContext
);
1082
TargetStartedEventMinimumFields targetStartedEvent = _buildEventManager.GetTargetStartedEvent(e.
BuildEventContext
);
1090
DisplayDeferredStartedEvents(e.
BuildEventContext
);
1098
WriteLinePrefix(e.
BuildEventContext
, e.Timestamp, false);
1105
ShownBuildEventContext(e.
BuildEventContext
);
1127
if (e.
BuildEventContext
== null && e is AssemblyLoadBuildEventArgs)
1132
ErrorUtilities.VerifyThrowArgumentNull(e.
BuildEventContext
, "BuildEventContext");
1156
&& e.
BuildEventContext
.ProjectContextId != BuildEventContext.InvalidProjectContextId
1157
&& _buildEventManager.GetProjectStartedEvent(e.
BuildEventContext
) == null
1160
if (!_deferredMessages.TryGetValue(e.
BuildEventContext
, out List<BuildMessageEventArgs> messageList))
1163
_deferredMessages.Add(e.
BuildEventContext
, messageList);
1169
DisplayDeferredStartedEvents(e.
BuildEventContext
);
1173
ShownBuildEventContext(e.
BuildEventContext
);
1184
counter.AddEventStarted(null, e.
BuildEventContext
, e.Timestamp, s_compareContextNodeId);
1192
counter.AddEventFinished(null, e.
BuildEventContext
, e.Timestamp);
1211
var evaluationKey = GetEvaluationKey(e.
BuildEventContext
);
1269
if (e.
BuildEventContext
.TaskId != BuildEventContext.InvalidTaskId && e.File == null)
1282
if ((IsVerbosityAtLeast(LoggerVerbosity.Diagnostic) || _showEventId) && e.
BuildEventContext
.TaskId != BuildEventContext.InvalidTaskId)
1284
bool prefixAlreadyWritten = WriteTargetMessagePrefix(e, e.
BuildEventContext
, e.Timestamp);
1285
WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", nonNullMessage, e.
BuildEventContext
.TaskId), prefixAlreadyWritten, prefixAdjustment);
1292
bool prefixAlreadyWritten = WriteTargetMessagePrefix(e, e.
BuildEventContext
, e.Timestamp);
1312
BuildEventContext currentBuildEventContext = e.
BuildEventContext
;
1342
WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TargetMessageWithId", targetName, e.
BuildEventContext
.TargetId), prefixAlreadyWritten);
1364
ProjectFullKey currentProjectFullKey = GetFullProjectKey(e.
BuildEventContext
);
1578
ErrorUtilities.VerifyThrowArgumentNull(e.
BuildEventContext
, "BuildEventContext");
1585
DisplayDeferredStartedEvents(e.
BuildEventContext
);
1586
WriteLinePrefix(e.
BuildEventContext
, e.Timestamp, false);
1588
ShownBuildEventContext(e.
BuildEventContext
);
Logging\ParallelLogger\ParallelLoggerHelpers.cs (6)
47
if (!_projectStartedEvents.ContainsKey(e.
BuildEventContext
))
75
_projectStartedEvents.Add(e.
BuildEventContext
, new ProjectStartedEventMinimumFields(projectIncrementKeyLocal, projectTargetKeyLocal, e, parentEvent, requireTimestamp));
85
if (!_targetStartedEvents.ContainsKey(e.
BuildEventContext
))
87
_targetStartedEvents.Add(e.
BuildEventContext
, new TargetStartedEventMinimumFields(e, requireTimeStamp));
401
_buildEventContext = startedEvent.
BuildEventContext
;
522
_buildEventContext = startedEvent.
BuildEventContext
;
LogMessagePacketBase.cs (1)
1019
var buildEventContext = args.
BuildEventContext
;
Microsoft.Build.Engine.UnitTests (48)
BackEnd\BuildManager_Tests.cs (1)
3967
Assert.True(_logger.AllBuildEvents.OfType<ProjectEvaluationStartedEventArgs>().GroupBy(args => args.
BuildEventContext
.EvaluationId).All(g => g.Count() == 1));
BackEnd\EventSourceSink_Tests.cs (1)
787
BuildEventContext = s_buildWarning.
BuildEventContext
BackEnd\LoggingService_Tests.cs (8)
749
Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.
BuildEventContext
, actualBuildEvent.
BuildEventContext
);
822
Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.
BuildEventContext
, actualBuildEvent.
BuildEventContext
);
887
Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.
BuildEventContext
, actualBuildEvent.
BuildEventContext
);
929
Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.
BuildEventContext
, actualBuildEvent.
BuildEventContext
);
BackEnd\LoggingServicesLogMethod_Tests.cs (2)
1301
Assert.Equal(expectedEventArgs.
BuildEventContext
, actualEventArgs.
BuildEventContext
);
BuildEventArgsSerialization_Tests.cs (7)
96
e => ToString(e.
BuildEventContext
),
168
e => ToString(e.
BuildEventContext
),
270
e => e.
BuildEventContext
.ToString());
609
desArgs.
BuildEventContext
.ShouldBe(args.
BuildEventContext
);
615
desArgs.
BuildEventContext
.ShouldBe(BuildEventContext.Invalid);
860
e => e.
BuildEventContext
.ToString(),
ConsoleLogger_Tests.cs (16)
618
message = context + ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", "my 1337 message", be.
BuildEventContext
.TaskId);
2139
targetStarted1.BuildEventContext = project1Started.
BuildEventContext
;
2144
taskStarted1.BuildEventContext = project1Started.
BuildEventContext
;
2149
messsage1.BuildEventContext = project1Started.
BuildEventContext
;
2153
taskFinished1.BuildEventContext = project1Started.
BuildEventContext
;
2158
targetFinished1.BuildEventContext = project1Started.
BuildEventContext
;
2162
ProjectStartedEventArgs project2Started = new ProjectStartedEventArgs(2, null, null, "p2", "t2", null, null, project1Started.
BuildEventContext
);
2167
targetStarted2.BuildEventContext = project2Started.
BuildEventContext
;
2172
taskStarted2.BuildEventContext = project2Started.
BuildEventContext
;
2177
messsage2.BuildEventContext = project2Started.
BuildEventContext
;
2181
taskFinished2.BuildEventContext = project2Started.
BuildEventContext
;
2186
targetFinished2.BuildEventContext = project2Started.
BuildEventContext
;
2191
finished2.BuildEventContext = project2Started.
BuildEventContext
;
2196
finished1.BuildEventContext = project1Started.
BuildEventContext
;
2281
ProjectStartedEventArgs project = new ProjectStartedEventArgs(1, "Hello,", "HI", "None", "Build", null, null, messsage1.
BuildEventContext
);
2282
project.BuildEventContext = messsage1.
BuildEventContext
;
Evaluation\EvaluationLogging_Tests.cs (2)
118
buildEvent.
BuildEventContext
.EvaluationId.ShouldBe(evaluationId);
149
var eventEvaluationId = args.
BuildEventContext
.EvaluationId;
Graph\IsolateProjects_Tests.cs (6)
213
logger.Errors.First().
BuildEventContext
.ShouldNotBe(BuildEventContext.Invalid);
215
logger.Errors.First().
BuildEventContext
.NodeId.ShouldNotBe(BuildEventContext.InvalidNodeId);
216
logger.Errors.First().
BuildEventContext
.ProjectInstanceId.ShouldNotBe(BuildEventContext.InvalidProjectInstanceId);
217
logger.Errors.First().
BuildEventContext
.ProjectContextId.ShouldNotBe(BuildEventContext.InvalidProjectContextId);
218
logger.Errors.First().
BuildEventContext
.TargetId.ShouldNotBe(BuildEventContext.InvalidTargetId);
219
logger.Errors.First().
BuildEventContext
.TaskId.ShouldNotBe(BuildEventContext.InvalidTaskId);
Graph\ResultCacheBasedBuilds_Tests.cs (5)
400
results["1"].Logger.Errors.First().
BuildEventContext
.NodeId.ShouldNotBe(BuildEventContext.InvalidNodeId);
401
results["1"].Logger.Errors.First().
BuildEventContext
.ProjectInstanceId.ShouldNotBe(BuildEventContext.InvalidProjectInstanceId);
402
results["1"].Logger.Errors.First().
BuildEventContext
.ProjectContextId.ShouldNotBe(BuildEventContext.InvalidProjectContextId);
403
results["1"].Logger.Errors.First().
BuildEventContext
.TargetId.ShouldNotBe(BuildEventContext.InvalidTargetId);
404
results["1"].Logger.Errors.First().
BuildEventContext
.TaskId.ShouldNotBe(BuildEventContext.InvalidTaskId);
Microsoft.Build.Framework (2)
AssemblyLoadBuildEventArgs.cs (1)
52
writer.WriteOptionalBuildEventContext(
BuildEventContext
);
TaskParameterEventArgs.cs (1)
182
writer.WriteOptionalBuildEventContext(
BuildEventContext
);
Microsoft.Build.Framework.UnitTests (10)
CustomEventArgSerialization_Tests.cs (2)
115
newGenericEvent.
BuildEventContext
.ShouldBe(genericEvent.
BuildEventContext
); // "Expected Event Context to Match"
EventArgs_Tests.cs (8)
107
startedEvent.
BuildEventContext
.ShouldNotBeNull();
117
startedEvent.
BuildEventContext
.SubmissionId.ShouldBe(0);
118
startedEvent.
BuildEventContext
.NodeId.ShouldBe(1);
119
startedEvent.
BuildEventContext
.EvaluationId.ShouldBe(2);
120
startedEvent.
BuildEventContext
.ProjectInstanceId.ShouldBe(3);
121
startedEvent.
BuildEventContext
.ProjectContextId.ShouldBe(4);
122
startedEvent.
BuildEventContext
.TargetId.ShouldBe(5);
123
startedEvent.
BuildEventContext
.TaskId.ShouldBe(6);
Microsoft.Build.Tasks.UnitTests (2)
MSBuild_Tests.cs (2)
1478
var expectedTaskId = logger.TaskStartedEvents.First(t => t.TaskName == "MSBuild").
BuildEventContext
.TaskId;
1514
var expectedTaskId = logger.TaskStartedEvents.First(t => t.TaskName == nameof(BuildProjectFileTask)).
BuildEventContext
.TaskId;
Microsoft.Build.UnitTests.Shared (2)
BuildEventArgsExtension.cs (2)
48
if (args.
BuildEventContext
!= other.
BuildEventContext
)
Microsoft.Build.Utilities.Core (35)
MuxLogger.cs (35)
307
_submissionProjectsInProgress.TryGetValue(e.
BuildEventContext
.SubmissionId, out int value);
308
_submissionProjectsInProgress[e.
BuildEventContext
.SubmissionId] = value + 1;
316
int value = _submissionProjectsInProgress[e.
BuildEventContext
.SubmissionId];
320
_submissionProjectsInProgress.Remove(e.
BuildEventContext
.SubmissionId);
323
_submissionRecords.Remove(e.
BuildEventContext
.SubmissionId);
328
_submissionProjectsInProgress[e.
BuildEventContext
.SubmissionId] = value - 1;
633
if (buildEvent.
BuildEventContext
!= null && buildEvent.
BuildEventContext
.SubmissionId != _submissionId)
675
buildEvent.
BuildEventContext
!= null &&
677
buildEvent.
BuildEventContext
.SubmissionId != _submissionId && /* The build submission does not match the submissionId for this logger */
678
buildEvent.
BuildEventContext
.SubmissionId != BuildEventContext.InvalidSubmissionId))
718
buildEvent.
BuildEventContext
!= null &&
720
buildEvent.
BuildEventContext
.SubmissionId != _submissionId && /* The build submission does not match the submissionId for this logger */
721
buildEvent.
BuildEventContext
.SubmissionId != BuildEventContext.InvalidSubmissionId))
850
if (buildEvent.
BuildEventContext
!= null && buildEvent.
BuildEventContext
.SubmissionId != _submissionId)
859
_firstProjectStartedEventContext = buildEvent.
BuildEventContext
;
906
if (buildEvent.
BuildEventContext
!= null && buildEvent.
BuildEventContext
.SubmissionId != _submissionId)
948
if (buildEvent.
BuildEventContext
!= null && buildEvent.
BuildEventContext
.SubmissionId != _submissionId)
990
if (buildEvent.
BuildEventContext
!= null && buildEvent.
BuildEventContext
.SubmissionId != _submissionId)
1032
if (buildEvent.
BuildEventContext
!= null && buildEvent.
BuildEventContext
.SubmissionId != _submissionId)
1074
if (buildEvent.
BuildEventContext
!= null && buildEvent.
BuildEventContext
.SubmissionId != _submissionId)
1116
if (buildEvent.
BuildEventContext
!= null && buildEvent.
BuildEventContext
.SubmissionId != _submissionId)
1163
if (buildEvent.
BuildEventContext
!= null && buildEvent.
BuildEventContext
.SubmissionId != _submissionId)
1212
buildEvent.
BuildEventContext
!= null &&
1214
buildEvent.
BuildEventContext
.SubmissionId != _submissionId && /* The build submission does not match the submissionId for this logger */
1216
buildEvent.
BuildEventContext
.SubmissionId == BuildEventContext.InvalidSubmissionId && eventIsErrorOrWarning)))
1257
if (projectFinishedEvent != null && buildEvent.
BuildEventContext
?.Equals(_firstProjectStartedEventContext) == true)
Microsoft.DotNet.ArcadeLogging (5)
PipelinesLogger.cs (5)
195
LogErrorOrWarning(isError: true, e.File, e.LineNumber, e.ColumnNumber, e.Code, e.Message, e.
BuildEventContext
);
198
LogErrorOrWarning(isError: false, e.File, e.LineNumber, e.ColumnNumber, e.Code, e.Message, e.
BuildEventContext
);
207
if (!_buildEventContextMap.TryGetValue(e.
BuildEventContext
, out var parentId))
223
if (!_buildEventContextMap.TryGetValue(e.
BuildEventContext
, out Guid projectId) ||
256
_buildEventContextMap[e.
BuildEventContext
] = projectInfo.Id;
MSBuild (8)
TerminalLogger\TerminalLogger.cs (8)
485
var buildEventContext = e.
BuildEventContext
;
516
var buildEventContext = e.
BuildEventContext
;
706
var buildEventContext = e.
BuildEventContext
;
751
var buildEventContext = e.
BuildEventContext
;
774
var buildEventContext = e.
BuildEventContext
;
792
var buildEventContext = e.
BuildEventContext
;
926
BuildEventContext? buildEventContext = e.
BuildEventContext
;
968
BuildEventContext? buildEventContext = e.
BuildEventContext
;
TaskUsageLogger (6)
TaskUsageLogger.cs (6)
117
GatherAndEvaluateTasksForProject(p, e.
BuildEventContext
.ProjectContextId);
122
_toolsVersionsByProjectContextId[e.
BuildEventContext
.ProjectContextId] = p.ToolsVersion;
155
_targetIdsToNames[e.
BuildEventContext
.TargetId] = e.TargetName;
169
_targetIdsToNames[e.
BuildEventContext
.TargetId],
172
GetAssemblySpecificationFor(e.TaskName, e.
BuildEventContext
.ProjectContextId, e.ProjectFile),
173
e.
BuildEventContext
.TaskId
XmlFileLogger (31)
ObjectModel\Build.cs (29)
77
var project = GetOrAddProject(targetStartedEventArgs.
BuildEventContext
.ProjectContextId);
88
var project = GetOrAddProject(buildMessageEventArgs.
BuildEventContext
.ProjectContextId);
89
var target = project.GetTargetById(buildMessageEventArgs.
BuildEventContext
.TargetId);
90
var task = target.GetTaskById(buildMessageEventArgs.
BuildEventContext
.TaskId);
101
var project = GetOrAddProject(taskCommandLineEventArgs.
BuildEventContext
.ProjectContextId);
102
var target = project.GetTargetById(taskCommandLineEventArgs.
BuildEventContext
.TargetId);
103
var task = target.GetTaskById(taskCommandLineEventArgs.
BuildEventContext
.TaskId);
117
var project = GetOrAddProject(buildMessageEventArgs.
BuildEventContext
.ProjectContextId);
118
var target = project.GetTargetById(buildMessageEventArgs.
BuildEventContext
.TargetId);
134
var project = GetOrAddProject(buildMessageEventArgs.
BuildEventContext
.ProjectContextId);
135
var target = project.GetTargetById(buildMessageEventArgs.
BuildEventContext
.TargetId);
148
if (buildMessageEventArgs.
BuildEventContext
.TaskId > 0)
150
node = GetOrAddProject(buildMessageEventArgs.
BuildEventContext
.ProjectContextId)
151
.GetTargetById(buildMessageEventArgs.
BuildEventContext
.TargetId)
152
.GetTaskById(buildMessageEventArgs.
BuildEventContext
.TaskId);
154
else if (buildMessageEventArgs.
BuildEventContext
.TargetId > 0)
156
node = GetOrAddProject(buildMessageEventArgs.
BuildEventContext
.ProjectContextId)
157
.GetTargetById(buildMessageEventArgs.
BuildEventContext
.TargetId);
159
else if (buildMessageEventArgs.
BuildEventContext
.ProjectContextId > 0)
161
node = GetOrAddProject(buildMessageEventArgs.
BuildEventContext
.ProjectContextId);
173
var project = GetOrAddProject(taskStartedEventArgs.
BuildEventContext
.ProjectContextId);
174
var target = project.GetTargetById(taskStartedEventArgs.
BuildEventContext
.TargetId);
192
var project = GetOrAddProject(projectStartedEventArgs.
BuildEventContext
.ProjectContextId, projectStartedEventArgs, parent);
234
var project = GetOrAddProject(targetFinishedEventArgs.
BuildEventContext
.ProjectContextId);
235
var target = project.GetTargetById(targetFinishedEventArgs.
BuildEventContext
.TargetId);
246
var project = GetOrAddProject(projectFinishedEventArgs.
BuildEventContext
.ProjectContextId);
256
var project = GetOrAddProject(taskFinishedEventArgs.
BuildEventContext
.ProjectContextId);
257
var target = project.GetTargetById(taskFinishedEventArgs.
BuildEventContext
.TargetId);
258
var task = target.GetTaskById(taskFinishedEventArgs.
BuildEventContext
.TaskId);
ObjectModel\Target.cs (1)
108
Id = e.
BuildEventContext
.TargetId;
ObjectModel\Task.cs (1)
30
Id = taskStartedEvent.
BuildEventContext
.TaskId;