297 writes to BuildEventContext
Microsoft.Build (72)
BackEnd\BuildManager\BuildManager.cs (1)
1430
submissionStartedEvent.
BuildEventContext
= buildEventContext;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
295
BuildEventContext
= new BuildEventContext(nodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId)
BackEnd\Components\Logging\LoggingContext.cs (1)
157
BuildEventContext
= _eventContext
BackEnd\Components\Logging\LoggingService.cs (4)
1561
BuildEventContext
= warningEvent.BuildEventContext,
1583
BuildEventContext
= warningEvent.BuildEventContext,
1606
BuildEventContext
= warningEvent.BuildEventContext,
1627
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;
663
buildEvent.
BuildEventContext
= targetBuildEventContext;
695
buildEvent.
BuildEventContext
= targetBuildEventContext;
721
buildEvent.
BuildEventContext
= taskBuildEventContext;
758
buildEvent.
BuildEventContext
= taskBuildEventContext;
789
buildEvent.
BuildEventContext
= taskBuildEventContext;
810
BuildEventContext
= buildEventContext,
831
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)
571
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)
169
{
BuildEventContext
= checkContext.BuildEventContext };
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (3)
121
eventArgs.
BuildEventContext
= checkContext.BuildEventContext!;
537
new(checkEventStats) {
BuildEventContext
= loggingContext.BuildEventContext };
651
deferredArgs.
BuildEventContext
= deferredArgs.BuildEventContext!.WithInstanceIdAndContextId(buildEventContext);
BuildCheck\Infrastructure\CheckWrapper.cs (1)
159
eventArgs.
BuildEventContext
= checkContext.BuildEventContext;
Construction\Solution\SolutionProjectGenerator.cs (1)
1058
BuildEventContext
= _projectBuildEventContext,
Definition\ProjectProperty.cs (2)
109
args.
BuildEventContext
= loggingContext.BuildEventContext;
128
args.
BuildEventContext
= loggingContext.BuildEventContext;
Evaluation\Evaluator.cs (7)
1718
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
1825
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2004
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2065
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2206
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2237
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2292
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (6)
227
args.
BuildEventContext
= _evaluationLoggingContext.BuildEventContext;
245
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
303
{
BuildEventContext
= _evaluationLoggingContext.BuildEventContext, };
341
{
BuildEventContext
= _evaluationLoggingContext.BuildEventContext, };
462
message: null) {
BuildEventContext
= loggingContext.BuildEventContext };
481
message: null) {
BuildEventContext
= loggingContext.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)
308
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;
1424
buildEventArgs.
BuildEventContext
= fields.BuildEventContext;
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
252
buildMessageEventArgs.
BuildEventContext
= e.BuildEventContext ?? BuildEventContext.Invalid;
LogMessagePacketBase.cs (2)
1316
args.
BuildEventContext
= buildEventContext;
1330
args.
BuildEventContext
= buildEventContext;
TelemetryInfra\TelemetryForwarderProvider.cs (1)
77
{
BuildEventContext
= loggingContext.BuildEventContext };
Microsoft.Build.Engine.UnitTests (169)
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)
137
result.
BuildEventContext
= CreateBuildEventContext();
159
result.
BuildEventContext
= CreateBuildEventContext();
229
BuildEventContext
= CreateBuildEventContext(),
264
new EnvironmentVariableReadEventArgs("env", "message", "file", 0, 0) {
BuildEventContext
= new BuildEventContext(1, 2, 3, 4, 5, 6) },
296
BuildEventContext
= new BuildEventContext(1, 2, 3, 4, 5, 6, 7)
302
BuildEventContext
= new BuildEventContext(1, 2, 3, 4, 5, 6, 7)
308
BuildEventContext
= new BuildEventContext(1, 2, 3, 4, 5, 6, 7)
314
BuildEventContext
= new BuildEventContext(1, 2, 3, 4, 5, 6, 7)
320
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)
491
bse.
BuildEventContext
= buildEventContext;
493
pse.
BuildEventContext
= buildEventContext;
495
trse.
BuildEventContext
= buildEventContext;
497
tase.
BuildEventContext
= buildEventContext;
499
bmea.
BuildEventContext
= buildEventContext;
501
bwea.
BuildEventContext
= buildEventContext;
503
beea.
BuildEventContext
= buildEventContext;
505
trfea.
BuildEventContext
= buildEventContext;
507
tafea.
BuildEventContext
= buildEventContext;
509
pfea.
BuildEventContext
= buildEventContext;
511
bfea.
BuildEventContext
= buildEventContext;
513
mcea.
BuildEventContext
= buildEventContext;
608
BuildEventContext
= new BuildEventContext(1, 2, 3, 4)
678
buildEventArgs.
BuildEventContext
= new BuildEventContext(1, 2, 3, 4);
722
bse.
BuildEventContext
= buildEventContext;
726
pse.
BuildEventContext
= buildEventContext;
730
trse.
BuildEventContext
= buildEventContext;
734
tase.
BuildEventContext
= buildEventContext;
738
bmea.
BuildEventContext
= buildEventContext;
742
tafea.
BuildEventContext
= buildEventContext;
746
trfea.
BuildEventContext
= buildEventContext;
750
pfea.
BuildEventContext
= buildEventContext;
754
bfea.
BuildEventContext
= buildEventContext;
775
bse.
BuildEventContext
= buildEventContext;
779
pse.
BuildEventContext
= buildEventContext;
783
trse.
BuildEventContext
= buildEventContext;
787
tase.
BuildEventContext
= buildEventContext;
794
beea.
BuildEventContext
= buildEventContext;
798
tafea.
BuildEventContext
= buildEventContext;
802
trfea.
BuildEventContext
= buildEventContext;
806
pfea.
BuildEventContext
= buildEventContext;
810
bfea.
BuildEventContext
= buildEventContext;
851
bse.
BuildEventContext
= buildEventContext;
855
pse.
BuildEventContext
= buildEventContext;
859
trse.
BuildEventContext
= buildEventContext;
863
tase.
BuildEventContext
= buildEventContext;
871
beea.
BuildEventContext
= buildEventContext;
875
tafea.
BuildEventContext
= buildEventContext;
879
trfea.
BuildEventContext
= buildEventContext;
883
pfea.
BuildEventContext
= buildEventContext;
887
bfea.
BuildEventContext
= buildEventContext;
928
bse.
BuildEventContext
= buildEventContext;
932
pse.
BuildEventContext
= buildEventContext;
936
trse.
BuildEventContext
= buildEventContext;
940
tase.
BuildEventContext
= buildEventContext;
944
bmea.
BuildEventContext
= buildEventContext;
948
tafea.
BuildEventContext
= buildEventContext;
952
trfea.
BuildEventContext
= buildEventContext;
956
pfea.
BuildEventContext
= buildEventContext;
960
bfea.
BuildEventContext
= buildEventContext;
984
bse.
BuildEventContext
= buildEventContext;
988
pse.
BuildEventContext
= buildEventContext;
992
trse.
BuildEventContext
= buildEventContext;
996
tase.
BuildEventContext
= buildEventContext;
1003
beea.
BuildEventContext
= buildEventContext;
1007
tafea.
BuildEventContext
= buildEventContext;
1011
trfea.
BuildEventContext
= buildEventContext;
1015
pfea.
BuildEventContext
= buildEventContext;
1019
bfea.
BuildEventContext
= buildEventContext;
1059
bse.
BuildEventContext
= buildEventContext;
1063
pse.
BuildEventContext
= buildEventContext;
1067
trse.
BuildEventContext
= buildEventContext;
1071
tase.
BuildEventContext
= buildEventContext;
1079
beea.
BuildEventContext
= buildEventContext;
1083
tafea.
BuildEventContext
= buildEventContext;
1087
trfea.
BuildEventContext
= buildEventContext;
1091
pfea.
BuildEventContext
= buildEventContext;
1095
bfea.
BuildEventContext
= buildEventContext;
1135
bse.
BuildEventContext
= buildEventContext;
1139
pse.
BuildEventContext
= buildEventContext;
1143
trse.
BuildEventContext
= buildEventContext;
1147
tase.
BuildEventContext
= buildEventContext;
1155
beea.
BuildEventContext
= buildEventContext;
1159
tafea.
BuildEventContext
= buildEventContext;
1163
trfea.
BuildEventContext
= buildEventContext;
1167
pfea.
BuildEventContext
= buildEventContext;
1171
bfea.
BuildEventContext
= buildEventContext;
1391
c.
BuildEventContext
= new BuildEventContext(1, 1, 1, 1);
1439
buildEvent.
BuildEventContext
= new BuildEventContext(1, 2, 3, 4);
1695
buildEvent.
BuildEventContext
= new BuildEventContext(1, 2, 3, 4);
1773
buildEvent.
BuildEventContext
= new BuildEventContext(1, 2, 3, 4);
1807
buildEvent.
BuildEventContext
= new BuildEventContext(1, 2, 3, 4);
2134
project1Started.
BuildEventContext
= new BuildEventContext(1, 1, 1, 1);
2137
targetStarted1.
BuildEventContext
= project1Started.BuildEventContext;
2142
taskStarted1.
BuildEventContext
= project1Started.BuildEventContext;
2147
messsage1.
BuildEventContext
= project1Started.BuildEventContext;
2151
taskFinished1.
BuildEventContext
= project1Started.BuildEventContext;
2156
targetFinished1.
BuildEventContext
= project1Started.BuildEventContext;
2162
project2Started.
BuildEventContext
= new BuildEventContext(2, 2, 2, 2);
2165
targetStarted2.
BuildEventContext
= project2Started.BuildEventContext;
2170
taskStarted2.
BuildEventContext
= project2Started.BuildEventContext;
2175
messsage2.
BuildEventContext
= project2Started.BuildEventContext;
2179
taskFinished2.
BuildEventContext
= project2Started.BuildEventContext;
2184
targetFinished2.
BuildEventContext
= project2Started.BuildEventContext;
2189
finished2.
BuildEventContext
= project2Started.BuildEventContext;
2194
finished1.
BuildEventContext
= project1Started.BuildEventContext;
2248
messsage1.
BuildEventContext
= new BuildEventContext(1, 1, 1, 1);
2262
messsage2.
BuildEventContext
= new BuildEventContext(1, 1, 1, 1);
2276
messsage2.
BuildEventContext
= new BuildEventContext(1, 1, 1, 1);
2280
project.
BuildEventContext
= messsage1.BuildEventContext;
2312
project.
BuildEventContext
= context;
2316
targetStarted1.
BuildEventContext
= context;
2320
messsage1.
BuildEventContext
= context;
2342
project.
BuildEventContext
= context;
2346
project2.
BuildEventContext
= context2;
2350
targetStarted1.
BuildEventContext
= context;
2354
targetStarted2.
BuildEventContext
= context2;
2358
messsage1.
BuildEventContext
= context;
2360
messsage2.
BuildEventContext
= context2;
2362
messsage3.
BuildEventContext
= context;
2410
project.
BuildEventContext
= context;
2414
targetStarted1.
BuildEventContext
= context;
2418
messsage1.
BuildEventContext
= context;
2422
projectFinished.
BuildEventContext
= context;
TerminalLogger_Tests.cs (12)
173
BuildEventContext
= MakeBuildEventContext(),
181
BuildEventContext
= MakeBuildEventContext(),
189
BuildEventContext
= MakeBuildEventContext(),
197
BuildEventContext
= MakeBuildEventContext(),
205
BuildEventContext
= MakeBuildEventContext(),
213
BuildEventContext
= MakeBuildEventContext(),
221
BuildEventContext
= MakeBuildEventContext(),
231
BuildEventContext
= MakeBuildEventContext(),
239
BuildEventContext
= MakeBuildEventContext(),
247
BuildEventContext
= MakeBuildEventContext(),
255
BuildEventContext
= MakeBuildEventContext(),
264
BuildEventContext
= MakeBuildEventContext(),
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,
301 references to BuildEventContext
Microsoft.Build (160)
BackEnd\BuildManager\BuildManager.cs (9)
1012
BuildResult result = _resultsCache!.GetResultsForConfiguration(projectStartedEvent.Value.
BuildEventContext
!.ProjectInstanceId);
2479
? buildEventArgs.
BuildEventContext
!
2889
if (_projectStartedEvents.TryGetValue(e.
BuildEventContext
!.SubmissionId, out var originalArgs))
2891
if (originalArgs.
BuildEventContext
!.Equals(e.
BuildEventContext
))
2893
_projectStartedEvents.Remove(e.
BuildEventContext
.SubmissionId);
2894
if (_buildSubmissions.TryGetValue(e.
BuildEventContext
.SubmissionId, out var submission))
2914
if (!_projectStartedEvents.ContainsKey(e.
BuildEventContext
!.SubmissionId))
2916
_projectStartedEvents[e.
BuildEventContext
.SubmissionId] = e;
BackEnd\Components\Logging\LoggingService.cs (23)
1215
if ((warningEvent = buildEvent as BuildWarningEventArgs) != null && warningEvent.
BuildEventContext
!= null && warningEvent.
BuildEventContext
.ProjectContextId != BuildEventContext.InvalidProjectContextId)
1219
else if ((errorEvent = buildEvent as BuildErrorEventArgs) != null && errorEvent.
BuildEventContext
!= null && errorEvent.
BuildEventContext
.ProjectContextId != BuildEventContext.InvalidProjectContextId)
1223
else if ((messageEvent = buildEvent as BuildMessageEventArgs) != null && messageEvent.
BuildEventContext
!= null && messageEvent.
BuildEventContext
.ProjectContextId != BuildEventContext.InvalidProjectContextId)
1324
if (!_projectFileMap.ContainsKey(projectStartedEventArgs.
BuildEventContext
.ProjectContextId))
1326
_projectFileMap[projectStartedEventArgs.
BuildEventContext
.ProjectContextId] = projectStartedEventArgs.ProjectFile;
1342
return GetWarningsConfigKey(buildEventArgs.
BuildEventContext
);
1561
BuildEventContext = warningEvent.
BuildEventContext
,
1583
BuildEventContext = warningEvent.
BuildEventContext
,
1606
BuildEventContext = warningEvent.
BuildEventContext
,
1627
BuildEventContext = warningEvent.
BuildEventContext
,
1636
int submissionId = errorEvent.
BuildEventContext
?.SubmissionId ?? BuildEventContext.InvalidSubmissionId;
1652
AddWarningsAsErrors(projectStartedEvent.
BuildEventContext
, projectStartedEvent.WarningsAsErrors);
1653
AddWarningsAsMessages(projectStartedEvent.
BuildEventContext
, projectStartedEvent.WarningsAsMessages);
1654
AddWarningsNotAsErrors(projectStartedEvent.
BuildEventContext
, projectStartedEvent.WarningsNotAsErrors);
1657
if (buildEventArgs is ProjectFinishedEventArgs projectFinishedEvent && projectFinishedEvent.
BuildEventContext
!= null)
1912
BuildEventContext context = eventArgs.
BuildEventContext
!;
1940
if (_warningsAsMessagesByProject != null && warningEvent.
BuildEventContext
!= null && warningEvent.
BuildEventContext
.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId)
1977
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
!);
102
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
107
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
120
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
125
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
130
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
154
_buildCheckManager.ProcessBuildFinished(_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!));
184
private BuildEventContext GetBuildEventContext(BuildEventArgs e) => e.
BuildEventContext
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (6)
651
deferredArgs.BuildEventContext = deferredArgs.
BuildEventContext
!.WithInstanceIdAndContextId(buildEventContext);
682
eventArgs.
BuildEventContext
== null ||
684
eventArgs.
BuildEventContext
.EvaluationId == BuildEventContext.InvalidEvaluationId ||
686
eventArgs.
BuildEventContext
.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId ||
696
if (!_deferredEvalDiagnostics.TryGetValue(eventArgs.
BuildEventContext
.EvaluationId, out var list))
699
_deferredEvalDiagnostics[eventArgs.
BuildEventContext
.EvaluationId] = list;
BuildCheck\Infrastructure\BuildEventsProcessor.cs (9)
76
evaluationFinishedEventArgs.
BuildEventContext
?.ProjectInstanceId,
93
evaluationFinishedEventArgs.
BuildEventContext
?.ProjectInstanceId,
143
if (taskStartedEventArgs.
BuildEventContext
is not null)
159
projectConfigurationId: taskStartedEventArgs.
BuildEventContext
.ProjectInstanceId,
166
_tasksBeingExecuted.Add(new TaskKey(taskStartedEventArgs.
BuildEventContext
), taskData);
180
if (taskFinishedEventArgs?.
BuildEventContext
is not null)
182
TaskKey taskKey = new TaskKey(taskFinishedEventArgs.
BuildEventContext
);
210
if (taskParameterEventArgs.
BuildEventContext
is not null &&
211
_tasksBeingExecuted.TryGetValue(new TaskKey(taskParameterEventArgs.
BuildEventContext
), out ExecutingTaskData taskData))
BuildCheck\OM\ParsedItemsCheckData.cs (1)
66
: base(evaluationFinishedEventArgs.ProjectFile!, evaluationFinishedEventArgs.
BuildEventContext
?.ProjectInstanceId)
Logging\BinaryLogger\BuildEventArgsWriter.cs (3)
252
buildMessageEventArgs.BuildEventContext = e.
BuildEventContext
?? BuildEventContext.Invalid;
659
Write(e.
BuildEventContext
);
817
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
;
Logging\TerminalLogger\TerminalLogger.cs (8)
569
var buildEventContext = e.
BuildEventContext
;
600
var buildEventContext = e.
BuildEventContext
;
773
var buildEventContext = e.
BuildEventContext
;
818
var buildEventContext = e.
BuildEventContext
;
841
var buildEventContext = e.
BuildEventContext
;
859
var buildEventContext = e.
BuildEventContext
;
993
BuildEventContext? buildEventContext = e.
BuildEventContext
;
1035
BuildEventContext? buildEventContext = e.
BuildEventContext
;
LogMessagePacketBase.cs (1)
955
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)
616
message = context + ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", "my 1337 message", be.
BuildEventContext
.TaskId);
2137
targetStarted1.BuildEventContext = project1Started.
BuildEventContext
;
2142
taskStarted1.BuildEventContext = project1Started.
BuildEventContext
;
2147
messsage1.BuildEventContext = project1Started.
BuildEventContext
;
2151
taskFinished1.BuildEventContext = project1Started.
BuildEventContext
;
2156
targetFinished1.BuildEventContext = project1Started.
BuildEventContext
;
2160
ProjectStartedEventArgs project2Started = new ProjectStartedEventArgs(2, null, null, "p2", "t2", null, null, project1Started.
BuildEventContext
);
2165
targetStarted2.BuildEventContext = project2Started.
BuildEventContext
;
2170
taskStarted2.BuildEventContext = project2Started.
BuildEventContext
;
2175
messsage2.BuildEventContext = project2Started.
BuildEventContext
;
2179
taskFinished2.BuildEventContext = project2Started.
BuildEventContext
;
2184
targetFinished2.BuildEventContext = project2Started.
BuildEventContext
;
2189
finished2.BuildEventContext = project2Started.
BuildEventContext
;
2194
finished1.BuildEventContext = project1Started.
BuildEventContext
;
2279
ProjectStartedEventArgs project = new ProjectStartedEventArgs(1, "Hello,", "HI", "None", "Build", null, null, messsage1.
BuildEventContext
);
2280
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;
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;