76 writes to BuildEventContext
Microsoft.Build (74)
BackEnd\BuildManager\BuildManager.cs (1)
1653
submissionStartedEvent.
BuildEventContext
= buildEventContext;
BackEnd\Components\Communications\LogMessagePacket.cs (2)
296
args.
BuildEventContext
= buildEventContext;
310
args.
BuildEventContext
= buildEventContext;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
349
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)
1619
BuildEventContext
= warningEvent.BuildEventContext,
1641
BuildEventContext
= warningEvent.BuildEventContext,
1664
BuildEventContext
= warningEvent.BuildEventContext,
1685
BuildEventContext
= warningEvent.BuildEventContext,
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (15)
175
buildEvent.
BuildEventContext
= buildEventContext;
327
buildEvent.
BuildEventContext
= buildEventContext;
445
msgEvent.
BuildEventContext
= BuildEventContext.Invalid;
452
registerEvent.
BuildEventContext
= BuildEventContext.Invalid;
500
BuildEventContext
= projectEvaluationEventContext,
530
BuildEventContext
= projectEvaluationEventContext,
658
buildEvent.
BuildEventContext
= projectBuildEventContext;
679
buildEvent.
BuildEventContext
= projectBuildEventContext;
723
buildEvent.
BuildEventContext
= targetBuildEventContext;
755
buildEvent.
BuildEventContext
= targetBuildEventContext;
781
buildEvent.
BuildEventContext
= taskBuildEventContext;
818
buildEvent.
BuildEventContext
= taskBuildEventContext;
849
buildEvent.
BuildEventContext
= taskBuildEventContext;
870
BuildEventContext
= buildEventContext,
891
responseFileUsedEvent.
BuildEventContext
= buildEventContext;
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
111
BuildEventContext
= projectLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (1)
146
buildArgs.
BuildEventContext
= _loggingContext.BuildEventContext;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
306
args.
BuildEventContext
= buildEventContext;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
572
BuildEventContext
= _projectLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
385
BuildEventContext
= projectLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (1)
240
BuildEventContext
= _buildEventContext,
BackEnd\Components\RequestBuilder\TaskHost.cs (5)
458
warningEvent.
BuildEventContext
= _taskLoggingContext.BuildEventContext;
466
e.
BuildEventContext
= _taskLoggingContext.BuildEventContext;
510
e.
BuildEventContext
= _taskLoggingContext.BuildEventContext;
551
e.
BuildEventContext
= _taskLoggingContext.BuildEventContext;
592
e.
BuildEventContext
= _taskLoggingContext.BuildEventContext;
BackEnd\Shared\EventsCreatorHelper.cs (3)
24
buildEvent.
BuildEventContext
= buildEventContext;
55
buildEvent.
BuildEventContext
= buildEventContext;
86
buildEvent.
BuildEventContext
= buildEventContext;
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
167
{
BuildEventContext
= checkContext.BuildEventContext };
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (3)
121
eventArgs.
BuildEventContext
= checkContext.BuildEventContext!;
538
new(checkEventStats) {
BuildEventContext
= loggingContext.BuildEventContext };
652
deferredArgs.
BuildEventContext
= deferredArgs.BuildEventContext!.WithInstanceIdAndContextId(buildEventContext);
BuildCheck\Infrastructure\CheckWrapper.cs (1)
159
eventArgs.
BuildEventContext
= checkContext.BuildEventContext;
Construction\Solution\SolutionProjectGenerator.cs (1)
1105
BuildEventContext
= _projectBuildEventContext,
Definition\ProjectProperty.cs (2)
109
args.
BuildEventContext
= loggingContext.BuildEventContext;
128
args.
BuildEventContext
= loggingContext.BuildEventContext;
Evaluation\Evaluator.cs (7)
1723
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
1837
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2041
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2102
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2243
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2274
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2329
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (6)
239
args.
BuildEventContext
= _evaluationLoggingContext.BuildEventContext;
257
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
315
{
BuildEventContext
= _evaluationLoggingContext.BuildEventContext, };
353
{
BuildEventContext
= _evaluationLoggingContext.BuildEventContext, };
475
{
BuildEventContext
= loggingContext.BuildEventContext };
495
{
BuildEventContext
= loggingContext.BuildEventContext, };
Instance\ProjectPropertyInstance.cs (2)
105
args.
BuildEventContext
= envProperty.loggingContext.BuildEventContext;
119
args.
BuildEventContext
= envProperty.loggingContext.BuildEventContext;
Instance\TaskFactoryEngineContext.cs (4)
212
e.
BuildEventContext
= _loggingContext.BuildEventContext;
233
e.
BuildEventContext
= _loggingContext.BuildEventContext;
254
e.
BuildEventContext
= _loggingContext.BuildEventContext;
275
e.
BuildEventContext
= _loggingContext.BuildEventContext;
Logging\BinaryLogger\BinaryLogger.cs (1)
488
args.
BuildEventContext
= BuildEventContext.Invalid;
Logging\BinaryLogger\BuildEventArgsReader.cs (6)
928
e.
BuildEventContext
= fields.BuildEventContext;
980
e.
BuildEventContext
= fields.BuildEventContext;
1034
e.
BuildEventContext
= fields.BuildEventContext;
1050
e.
BuildEventContext
= fields.BuildEventContext;
1127
e.
BuildEventContext
= fields.BuildEventContext;
1457
buildEventArgs.
BuildEventContext
= fields.BuildEventContext;
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
253
buildMessageEventArgs.
BuildEventContext
= e.BuildEventContext ?? BuildEventContext.Invalid;
TelemetryInfra\TelemetryCollectorProvider.cs (1)
75
{
BuildEventContext
= loggingContext.BuildEventContext };
Microsoft.Build.Framework (2)
AssemblyLoadBuildEventArgs.cs (1)
65
BuildEventContext
= reader.ReadOptionalBuildEventContext();
TaskParameterEventArgs.cs (1)
130
BuildEventContext
= reader.ReadOptionalBuildEventContext();
207 references to BuildEventContext
Microsoft.Build (168)
BackEnd\BuildManager\BuildManager.cs (9)
1084
BuildResult result = _resultsCache!.GetResultsForConfiguration(projectStartedEvent.Value.
BuildEventContext
!.ProjectInstanceId);
2708
? buildEventArgs.
BuildEventContext
!
3116
if (_projectStartedEvents.TryGetValue(e.
BuildEventContext
!.SubmissionId, out var originalArgs))
3118
if (originalArgs.
BuildEventContext
!.Equals(e.
BuildEventContext
))
3120
_projectStartedEvents.Remove(e.
BuildEventContext
.SubmissionId);
3121
if (_buildSubmissions.TryGetValue(e.
BuildEventContext
.SubmissionId, out var submission))
3141
if (!_projectStartedEvents.ContainsKey(e.
BuildEventContext
!.SubmissionId))
3143
_projectStartedEvents[e.
BuildEventContext
.SubmissionId] = e;
BackEnd\Components\Communications\LogMessagePacket.cs (1)
114
var buildEventContext = args.
BuildEventContext
;
BackEnd\Components\Logging\LoggingService.cs (23)
1245
if ((warningEvent = buildEvent as BuildWarningEventArgs) != null && warningEvent.
BuildEventContext
!= null && warningEvent.
BuildEventContext
.ProjectContextId != BuildEventContext.InvalidProjectContextId)
1249
else if ((errorEvent = buildEvent as BuildErrorEventArgs) != null && errorEvent.
BuildEventContext
!= null && errorEvent.
BuildEventContext
.ProjectContextId != BuildEventContext.InvalidProjectContextId)
1253
else if ((messageEvent = buildEvent as BuildMessageEventArgs) != null && messageEvent.
BuildEventContext
!= null && messageEvent.
BuildEventContext
.ProjectContextId != BuildEventContext.InvalidProjectContextId)
1384
if (!_projectFileMap.ContainsKey(projectStartedEventArgs.
BuildEventContext
.ProjectContextId))
1386
_projectFileMap[projectStartedEventArgs.
BuildEventContext
.ProjectContextId] = projectStartedEventArgs.ProjectFile;
1402
return GetWarningsConfigKey(buildEventArgs.
BuildEventContext
);
1619
BuildEventContext = warningEvent.
BuildEventContext
,
1641
BuildEventContext = warningEvent.
BuildEventContext
,
1664
BuildEventContext = warningEvent.
BuildEventContext
,
1685
BuildEventContext = warningEvent.
BuildEventContext
,
1694
int submissionId = errorEvent.
BuildEventContext
?.SubmissionId ?? BuildEventContext.InvalidSubmissionId;
1712
AddWarningsAsErrors(projectStartedEvent.
BuildEventContext
, projectStartedEvent.WarningsAsErrors);
1713
AddWarningsAsMessages(projectStartedEvent.
BuildEventContext
, projectStartedEvent.WarningsAsMessages);
1714
AddWarningsNotAsErrors(projectStartedEvent.
BuildEventContext
, projectStartedEvent.WarningsNotAsErrors);
1717
if (buildEventArgs is ProjectFinishedEventArgs projectFinishedEvent && projectFinishedEvent.
BuildEventContext
!= null)
1978
BuildEventContext context = eventArgs.
BuildEventContext
!;
2000
if (_warningsAsMessagesByProject != null && warningEvent.
BuildEventContext
!= null && warningEvent.
BuildEventContext
.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId)
2037
if (_warningsAsErrorsByProject != null && warningEvent.
BuildEventContext
!= null && warningEvent.
BuildEventContext
.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
581
return args.
BuildEventContext
;
BackEnd\Components\Logging\ProjectLoggingContext.cs (2)
103
: base(nodeLoggingContext, projectStarted.
BuildEventContext
)
183
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
!),
152
_buildCheckManager.ProcessBuildFinished(_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!));
182
private BuildEventContext GetBuildEventContext(BuildEventArgs e) => e.
BuildEventContext
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (6)
652
deferredArgs.BuildEventContext = deferredArgs.
BuildEventContext
!.WithInstanceIdAndContextId(buildEventContext);
683
eventArgs.
BuildEventContext
== null ||
685
eventArgs.
BuildEventContext
.EvaluationId == BuildEventContext.InvalidEvaluationId ||
687
eventArgs.
BuildEventContext
.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId ||
697
if (!_deferredEvalDiagnostics.TryGetValue(eventArgs.
BuildEventContext
.EvaluationId, out var list))
700
_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)
253
buildMessageEventArgs.BuildEventContext = e.
BuildEventContext
?? BuildEventContext.Invalid;
684
Write(e.
BuildEventContext
);
865
if (e.
BuildEventContext
!= null)
Logging\ParallelLogger\ParallelConsoleLogger.cs (81)
457
TargetStartedEventMinimumFields targetEvent = _buildEventManager.GetTargetStartedEvent(errorWarningEventArgs.
BuildEventContext
);
465
ErrorWarningSummaryDictionaryKey key = new ErrorWarningSummaryDictionaryKey(errorWarningEventArgs.
BuildEventContext
, targetName);
532
ArgumentNullException.ThrowIfNull(e.
BuildEventContext
, "BuildEventContext");
542
counter.AddEventStarted(e.TargetNames, e.
BuildEventContext
, e.Timestamp, s_compareContextNodeId);
546
if (_deferredMessages.TryGetValue(e.
BuildEventContext
, out var deferredMessages))
556
_deferredMessages.Remove(e.
BuildEventContext
);
566
DisplayDeferredProjectStartedEvent(e.
BuildEventContext
);
580
var projectKey = (e.
BuildEventContext
.NodeId, e.
BuildEventContext
.ProjectContextId);
594
var evaluationKey = GetEvaluationKey(e.
BuildEventContext
);
672
ArgumentNullException.ThrowIfNull(e.
BuildEventContext
, "BuildEventContext");
675
ProjectStartedEventMinimumFields startedEvent = _buildEventManager.GetProjectStartedEvent(e.
BuildEventContext
);
682
counter.AddEventFinished(startedEvent.TargetNames, e.
BuildEventContext
, e.Timestamp);
690
_lastProjectFullKey = GetFullProjectKey(e.
BuildEventContext
);
694
WriteLinePrefix(e.
BuildEventContext
, e.Timestamp, false);
735
ShownBuildEventContext(e.
BuildEventContext
);
740
_buildEventManager.RemoveProjectStartedEvent(e.
BuildEventContext
);
767
WriteLinePrefix(e.
BuildEventContext
, e.Timestamp, false);
769
ShownBuildEventContext(e.
BuildEventContext
);
834
WriteLinePrefix(e.
BuildEventContext
, e.Timestamp, false);
836
ShownBuildEventContext(e.
BuildEventContext
);
863
ArgumentNullException.ThrowIfNull(e.
BuildEventContext
, "BuildEventContext");
873
counter.AddEventStarted(null, e.
BuildEventContext
, e.Timestamp, s_compareContextNodeIdTargetId);
884
ArgumentNullException.ThrowIfNull(e.
BuildEventContext
, "BuildEventContext");
890
counter.AddEventFinished(null, e.
BuildEventContext
, e.Timestamp);
896
DisplayDeferredTargetStartedEvent(e.
BuildEventContext
);
900
TargetStartedEventMinimumFields startedEvent = _buildEventManager.GetTargetStartedEvent(e.
BuildEventContext
);
927
_lastProjectFullKey = GetFullProjectKey(e.
BuildEventContext
);
928
WriteLinePrefix(e.
BuildEventContext
, e.Timestamp, false);
932
WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TargetMessageWithId", e.Message, e.
BuildEventContext
.TargetId), true);
941
ShownBuildEventContext(e.
BuildEventContext
);
946
_buildEventManager.RemoveTargetStartedEvent(e.
BuildEventContext
);
956
ArgumentNullException.ThrowIfNull(e.
BuildEventContext
, "BuildEventContext");
962
DisplayDeferredStartedEvents(e.
BuildEventContext
);
966
bool prefixAlreadyWritten = WriteTargetMessagePrefix(e, e.
BuildEventContext
, e.Timestamp);
970
WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", e.Message, e.
BuildEventContext
.TaskId), prefixAlreadyWritten);
979
ShownBuildEventContext(e.
BuildEventContext
);
986
counter.AddEventStarted(null, e.
BuildEventContext
, e.Timestamp, null);
997
ArgumentNullException.ThrowIfNull(e.
BuildEventContext
, "BuildEventContext");
1002
counter.AddEventFinished(null, e.
BuildEventContext
, e.Timestamp);
1010
bool prefixAlreadyWritten = WriteTargetMessagePrefix(e, e.
BuildEventContext
, e.Timestamp);
1014
WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", e.Message, e.
BuildEventContext
.TaskId), prefixAlreadyWritten);
1022
ShownBuildEventContext(e.
BuildEventContext
);
1033
if (e.
BuildEventContext
!= null)
1035
var key = (e.
BuildEventContext
.NodeId, e.
BuildEventContext
.ProjectContextId);
1047
ArgumentNullException.ThrowIfNull(e.
BuildEventContext
, "BuildEventContext");
1054
_buildEventManager.SetErrorWarningFlagOnCallStack(e.
BuildEventContext
);
1056
TargetStartedEventMinimumFields targetStartedEvent = _buildEventManager.GetTargetStartedEvent(e.
BuildEventContext
);
1063
DisplayDeferredStartedEvents(e.
BuildEventContext
);
1071
WriteLinePrefix(e.
BuildEventContext
, e.Timestamp, false);
1076
ShownBuildEventContext(e.
BuildEventContext
);
1093
ArgumentNullException.ThrowIfNull(e.
BuildEventContext
, "BuildEventContext");
1100
_buildEventManager.SetErrorWarningFlagOnCallStack(e.
BuildEventContext
);
1101
TargetStartedEventMinimumFields targetStartedEvent = _buildEventManager.GetTargetStartedEvent(e.
BuildEventContext
);
1109
DisplayDeferredStartedEvents(e.
BuildEventContext
);
1117
WriteLinePrefix(e.
BuildEventContext
, e.Timestamp, false);
1124
ShownBuildEventContext(e.
BuildEventContext
);
1145
if (e.
BuildEventContext
== null && e is AssemblyLoadBuildEventArgs)
1150
ArgumentNullException.ThrowIfNull(e.
BuildEventContext
, "BuildEventContext");
1174
&& e.
BuildEventContext
.ProjectContextId != BuildEventContext.InvalidProjectContextId
1175
&& _buildEventManager.GetProjectStartedEvent(e.
BuildEventContext
) == null
1178
if (!_deferredMessages.TryGetValue(e.
BuildEventContext
, out List<BuildMessageEventArgs> messageList))
1181
_deferredMessages.Add(e.
BuildEventContext
, messageList);
1187
DisplayDeferredStartedEvents(e.
BuildEventContext
);
1191
ShownBuildEventContext(e.
BuildEventContext
);
1202
counter.AddEventStarted(null, e.
BuildEventContext
, e.Timestamp, s_compareContextNodeId);
1210
counter.AddEventFinished(null, e.
BuildEventContext
, e.Timestamp);
1229
var evaluationKey = GetEvaluationKey(e.
BuildEventContext
);
1291
if (e.
BuildEventContext
.TaskId != BuildEventContext.InvalidTaskId && e.File == null)
1304
if ((IsVerbosityAtLeast(LoggerVerbosity.Diagnostic) || _showEventId) && e.
BuildEventContext
.TaskId != BuildEventContext.InvalidTaskId)
1306
bool prefixAlreadyWritten = WriteTargetMessagePrefix(e, e.
BuildEventContext
, e.Timestamp);
1307
WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskMessageWithId", nonNullMessage, e.
BuildEventContext
.TaskId), prefixAlreadyWritten, prefixAdjustment);
1314
bool prefixAlreadyWritten = WriteTargetMessagePrefix(e, e.
BuildEventContext
, e.Timestamp);
1334
BuildEventContext currentBuildEventContext = e.
BuildEventContext
;
1364
WriteMessageAligned(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TargetMessageWithId", targetName, e.
BuildEventContext
.TargetId), prefixAlreadyWritten);
1386
ProjectFullKey currentProjectFullKey = GetFullProjectKey(e.
BuildEventContext
);
1584
ArgumentNullException.ThrowIfNull(e.
BuildEventContext
, "BuildEventContext");
1591
DisplayDeferredStartedEvents(e.
BuildEventContext
);
1592
WriteLinePrefix(e.
BuildEventContext
, e.Timestamp, false);
1594
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));
399
_buildEventContext = startedEvent.
BuildEventContext
;
520
_buildEventContext = startedEvent.
BuildEventContext
;
Logging\TerminalLogger\ForwardingTerminalLogger.cs (3)
93
if (e.
BuildEventContext
is not null && e.TaskName == MSBuildTaskName)
103
if (e.
BuildEventContext
is not null && e.TaskName == MSBuildTaskName)
111
if (e.
BuildEventContext
is null)
Logging\TerminalLogger\TerminalLogger.cs (13)
736
if (e.
BuildEventContext
is null)
741
ProjectContext c = new(e.
BuildEventContext
);
745
EvalContext evalContext = new(e.
BuildEventContext
);
768
int nodeIndex = NodeIndexForContext(e.
BuildEventContext
);
780
var buildEventContext = e.
BuildEventContext
;
898
var buildEventContext = evalFinish.
BuildEventContext
;
1057
var buildEventContext = e.
BuildEventContext
;
1123
var buildEventContext = e.
BuildEventContext
;
1161
var buildEventContext = e.
BuildEventContext
;
1179
var buildEventContext = e.
BuildEventContext
;
1198
var buildEventContext = e.
BuildEventContext
;
1357
BuildEventContext? buildEventContext = e.
BuildEventContext
;
1446
BuildEventContext? buildEventContext = e.
BuildEventContext
;
Microsoft.Build.Framework (2)
AssemblyLoadBuildEventArgs.cs (1)
51
writer.WriteOptionalBuildEventContext(
BuildEventContext
);
TaskParameterEventArgs.cs (1)
181
writer.WriteOptionalBuildEventContext(
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.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
MSBuild\Logging\MSBuildDiagnosticLogger.cs (2)
41
=> AddLogItem(DiagnosticLogItemKind.Error, e.
BuildEventContext
, e.ProjectFile, e.Message, e.File, e.LineNumber, e.ColumnNumber);
44
=> AddLogItem(DiagnosticLogItemKind.Warning, e.
BuildEventContext
, e.ProjectFile, e.Message, e.File, e.LineNumber, e.ColumnNumber);