78 writes to BuildEventContext
Microsoft.Build (75)
BackEnd\BuildManager\BuildManager.cs (2)
1929
submissionStartedEvent.
BuildEventContext
= buildEventContext;
3684
message.BuildEvent.
BuildEventContext
??= BuildEventContext.Invalid;
BackEnd\Components\Communications\LogMessagePacket.cs (2)
295
args.
BuildEventContext
= buildEventContext;
309
args.
BuildEventContext
= buildEventContext;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
411
BuildEventContext
= new BuildEventContext(nodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId)
BackEnd\Components\Logging\LoggingContext.cs (1)
159
BuildEventContext
= _eventContext
BackEnd\Components\Logging\LoggingService.cs (4)
1830
BuildEventContext
= warningEvent.BuildEventContext,
1852
BuildEventContext
= warningEvent.BuildEventContext,
1875
BuildEventContext
= warningEvent.BuildEventContext,
1896
BuildEventContext
= warningEvent.BuildEventContext,
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (14)
176
buildEvent.
BuildEventContext
= buildEventContext;
425
msgEvent.
BuildEventContext
= BuildEventContext.Invalid;
432
registerEvent.
BuildEventContext
= BuildEventContext.Invalid;
480
BuildEventContext
= projectEvaluationEventContext,
510
BuildEventContext
= projectEvaluationEventContext,
638
buildEvent.
BuildEventContext
= projectBuildEventContext;
659
buildEvent.
BuildEventContext
= projectBuildEventContext;
703
buildEvent.
BuildEventContext
= targetBuildEventContext;
735
buildEvent.
BuildEventContext
= targetBuildEventContext;
761
buildEvent.
BuildEventContext
= taskBuildEventContext;
798
buildEvent.
BuildEventContext
= taskBuildEventContext;
829
buildEvent.
BuildEventContext
= taskBuildEventContext;
850
BuildEventContext
= buildEventContext,
871
responseFileUsedEvent.
BuildEventContext
= buildEventContext;
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
114
BuildEventContext
= projectLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (1)
160
buildArgs.
BuildEventContext
= _loggingContext.BuildEventContext;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
314
args.
BuildEventContext
= buildEventContext;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
608
BuildEventContext
= _projectLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
396
BuildEventContext
= projectLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (1)
241
BuildEventContext
= _buildEventContext,
BackEnd\Components\RequestBuilder\TaskHost.cs (5)
452
warningEvent.
BuildEventContext
= _taskLoggingContext.BuildEventContext;
460
e.
BuildEventContext
= _taskLoggingContext.BuildEventContext;
551
e.
BuildEventContext
= _taskLoggingContext.BuildEventContext;
592
e.
BuildEventContext
= _taskLoggingContext.BuildEventContext;
633
e.
BuildEventContext
= _taskLoggingContext.BuildEventContext;
BackEnd\Shared\EventsCreatorHelper.cs (3)
30
BuildEventContext
= buildEventContext,
58
BuildEventContext
= buildEventContext,
86
BuildEventContext
= buildEventContext,
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
198
{
BuildEventContext
= checkContext.BuildEventContext };
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (3)
123
eventArgs.
BuildEventContext
= checkContext.BuildEventContext!;
541
new(checkEventStats) {
BuildEventContext
= loggingContext.BuildEventContext };
655
deferredArgs.
BuildEventContext
= deferredArgs.BuildEventContext!.WithInstanceIdAndContextId(buildEventContext);
BuildCheck\Infrastructure\CheckWrapper.cs (1)
159
eventArgs.
BuildEventContext
= checkContext.BuildEventContext;
Construction\Solution\SolutionProjectGenerator.cs (1)
1113
BuildEventContext
= _projectBuildEventContext,
Definition\ProjectProperty.cs (2)
109
args.
BuildEventContext
= loggingContext.BuildEventContext;
128
args.
BuildEventContext
= loggingContext.BuildEventContext;
Evaluation\Evaluator.cs (7)
1874
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
1986
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2190
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2251
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2392
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2423
BuildEventContext
= _evaluationLoggingContext.BuildEventContext,
2478
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)
106
args.
BuildEventContext
= envProperty.loggingContext.BuildEventContext;
120
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 (2)
585
BuildEventContext
= BuildEventContext.Invalid,
610
args.
BuildEventContext
= BuildEventContext.Invalid;
Logging\BinaryLogger\BuildEventArgsReader.cs (6)
1210
e.
BuildEventContext
= fields.BuildEventContext;
1262
e.
BuildEventContext
= fields.BuildEventContext;
1316
e.
BuildEventContext
= fields.BuildEventContext;
1332
e.
BuildEventContext
= fields.BuildEventContext;
1409
e.
BuildEventContext
= fields.BuildEventContext;
1773
buildEventArgs.
BuildEventContext
= fields.BuildEventContext;
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
292
buildMessageEventArgs.
BuildEventContext
= e.BuildEventContext ?? BuildEventContext.Invalid;
TelemetryInfra\TelemetryCollectorProvider.cs (1)
80
{
BuildEventContext
= loggingContext.BuildEventContext };
Microsoft.Build.Framework (2)
AssemblyLoadBuildEventArgs.cs (1)
65
BuildEventContext
= reader.ReadOptionalBuildEventContext();
TaskParameterEventArgs.cs (1)
130
BuildEventContext
= reader.ReadOptionalBuildEventContext();
MSBuild (1)
XMake.cs (1)
2264
BuildEventContext
= BuildEventContext.Invalid,
215 references to BuildEventContext
Microsoft.Build (169)
BackEnd\BuildManager\BuildManager.cs (8)
3008
? buildEventArgs.
BuildEventContext
!
3435
if (_projectStartedEvents.TryGetValue(e.
BuildEventContext
!.SubmissionId, out var originalArgs))
3437
if (originalArgs.
BuildEventContext
!.Equals(e.
BuildEventContext
))
3439
_projectStartedEvents.Remove(e.
BuildEventContext
.SubmissionId);
3440
if (_buildSubmissions.TryGetValue(e.
BuildEventContext
.SubmissionId, out var submission))
3460
if (!_projectStartedEvents.ContainsKey(e.
BuildEventContext
!.SubmissionId))
3462
_projectStartedEvents[e.
BuildEventContext
.SubmissionId] = e;
BackEnd\Components\Communications\LogMessagePacket.cs (1)
113
var buildEventContext = args.
BuildEventContext
;
BackEnd\Components\Logging\LoggingService.cs (23)
1330
if ((warningEvent = buildEvent as BuildWarningEventArgs) != null && warningEvent.
BuildEventContext
!= null && warningEvent.
BuildEventContext
.ProjectContextId != BuildEventContext.InvalidProjectContextId)
1334
else if ((errorEvent = buildEvent as BuildErrorEventArgs) != null && errorEvent.
BuildEventContext
!= null && errorEvent.
BuildEventContext
.ProjectContextId != BuildEventContext.InvalidProjectContextId)
1338
else if ((messageEvent = buildEvent as BuildMessageEventArgs) != null && messageEvent.
BuildEventContext
!= null && messageEvent.
BuildEventContext
.ProjectContextId != BuildEventContext.InvalidProjectContextId)
1585
if (!_projectFileMap.ContainsKey(projectStartedEventArgs.
BuildEventContext
.ProjectContextId))
1587
_projectFileMap[projectStartedEventArgs.
BuildEventContext
.ProjectContextId] = projectStartedEventArgs.ProjectFile;
1593
taskParameterEventArgs.
BuildEventContext
!= null &&
1594
taskParameterEventArgs.
BuildEventContext
.ProjectContextId != BuildEventContext.InvalidProjectContextId)
1613
return GetWarningsConfigKey(buildEventArgs.
BuildEventContext
);
1811
if (ShouldTreatWarningAsMessage(warningEvent.
BuildEventContext
, warningEvent.Code))
1830
BuildEventContext = warningEvent.
BuildEventContext
,
1852
BuildEventContext = warningEvent.
BuildEventContext
,
1857
else if (ShouldPromoteWarningToError(warningEvent.
BuildEventContext
, warningEvent.Code))
1875
BuildEventContext = warningEvent.
BuildEventContext
,
1896
BuildEventContext = warningEvent.
BuildEventContext
,
1905
int submissionId = errorEvent.
BuildEventContext
?.SubmissionId ?? BuildEventContext.InvalidSubmissionId;
1923
AddWarningsAsErrors(projectStartedEvent.
BuildEventContext
, projectStartedEvent.WarningsAsErrors);
1924
AddWarningsAsMessages(projectStartedEvent.
BuildEventContext
, projectStartedEvent.WarningsAsMessages);
1925
AddWarningsNotAsErrors(projectStartedEvent.
BuildEventContext
, projectStartedEvent.WarningsNotAsErrors);
1928
if (buildEventArgs is ProjectFinishedEventArgs projectFinishedEvent && projectFinishedEvent.
BuildEventContext
!= null)
2189
BuildEventContext context = eventArgs.
BuildEventContext
!;
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
561
return args.
BuildEventContext
;
BackEnd\Components\Logging\ProjectLoggingContext.cs (2)
109
: base(nodeLoggingContext, projectStarted.
BuildEventContext
)
191
return args.
BuildEventContext
;
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (10)
78
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
81
_buildCheckManager.EndProjectEvaluation(eventArgs.
BuildEventContext
!);
89
var checkContext = _checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!);
104
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
109
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
122
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
127
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
132
_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!),
183
_buildCheckManager.ProcessBuildFinished(_checkContextFactory.CreateCheckContext(eventArgs.
BuildEventContext
!));
213
private BuildEventContext GetBuildEventContext(BuildEventArgs e) => e.
BuildEventContext
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (6)
655
deferredArgs.BuildEventContext = deferredArgs.
BuildEventContext
!.WithInstanceIdAndContextId(buildEventContext);
686
eventArgs.
BuildEventContext
== null ||
688
eventArgs.
BuildEventContext
.EvaluationId == BuildEventContext.InvalidEvaluationId ||
690
eventArgs.
BuildEventContext
.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId ||
700
if (!_deferredEvalDiagnostics.TryGetValue(eventArgs.
BuildEventContext
.EvaluationId, out var list))
703
_deferredEvalDiagnostics[eventArgs.
BuildEventContext
.EvaluationId] = list;
BuildCheck\Infrastructure\BuildEventsProcessor.cs (9)
78
evaluationFinishedEventArgs.
BuildEventContext
?.ProjectInstanceId,
95
evaluationFinishedEventArgs.
BuildEventContext
?.ProjectInstanceId,
145
if (taskStartedEventArgs.
BuildEventContext
is not null)
163
projectConfigurationId: taskStartedEventArgs.
BuildEventContext
.ProjectInstanceId,
170
_tasksBeingExecuted.Add(new TaskKey(taskStartedEventArgs.
BuildEventContext
), taskData);
178
if (taskFinishedEventArgs?.
BuildEventContext
is not null)
180
TaskKey taskKey = new TaskKey(taskFinishedEventArgs.
BuildEventContext
);
211
if (taskParameterEventArgs.
BuildEventContext
is not null &&
212
_tasksBeingExecuted.TryGetValue(new TaskKey(taskParameterEventArgs.
BuildEventContext
), out ExecutingTaskData taskData))
BuildCheck\OM\ParsedItemsCheckData.cs (1)
66
: base(evaluationFinishedEventArgs.ProjectFile!, evaluationFinishedEventArgs.
BuildEventContext
?.ProjectInstanceId)
Logging\BinaryLogger\BinaryLogger.cs (1)
737
&& BuildEventContext.Invalid.Equals(e.
BuildEventContext
)))
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
325
result.
BuildEventContext
,
Logging\BinaryLogger\BuildEventArgsWriter.cs (3)
292
buildMessageEventArgs.BuildEventContext = e.
BuildEventContext
?? BuildEventContext.Invalid;
893
Write(e.
BuildEventContext
);
1074
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)
113
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
;
904
var buildEventContext = evalFinish.
BuildEventContext
;
1063
var buildEventContext = e.
BuildEventContext
;
1129
var buildEventContext = e.
BuildEventContext
;
1167
var buildEventContext = e.
BuildEventContext
;
1185
var buildEventContext = e.
BuildEventContext
;
1204
var buildEventContext = e.
BuildEventContext
;
1368
BuildEventContext? buildEventContext = e.
BuildEventContext
;
1458
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);
Microsoft.NET.ProjectData.Tasks (7)
ProjectDataBuildCompletionLogger.cs (7)
125
error.
BuildEventContext
,
137
warning.
BuildEventContext
,
181
Context = ConvertContext(submission.
BuildEventContext
),
194
string contextKey = GetContextKey(projectStarted.
BuildEventContext
);
204
Context = ConvertContext(projectStarted.
BuildEventContext
),
218
string contextKey = GetContextKey(evaluationStarted.
BuildEventContext
);
228
Context = ConvertContext(evaluationStarted.
BuildEventContext
),