82 references to BuildEventContext
Microsoft.Build (78)
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
63
LoggingService.LogFatalTaskError(
BuildEventContext
, exception, file, taskName);
BackEnd\Components\Logging\EvaluationLoggingContext.cs (3)
33
LoggingService.LogProjectEvaluationStarted(
BuildEventContext
, _projectFile);
35
new CheckLoggingContext(LoggingService,
BuildEventContext
), _projectFile);
48
LoggingService.LogProjectEvaluationFinished(
BuildEventContext
, _projectFile, globalProperties, properties, items, profilerResult);
BackEnd\Components\Logging\LoggingContext.cs (4)
302
LoggingService.LogFatalBuildError(
BuildEventContext
, exception, file);
313
_loggingService.LogIncludeFile(
BuildEventContext
, filePath);
319
new CheckLoggingContext(_loggingService,
BuildEventContext
));
324
new CheckLoggingContext(_loggingService,
BuildEventContext
));
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
107
BuildEventContext = projectLoggingContext.
BuildEventContext
,
BackEnd\Components\Logging\ProjectLoggingContext.cs (4)
106
LoggingService.LogComment(this.
BuildEventContext
, MessageImportance.Low, "ToolsVersionInEffectForBuild", projectStarted.ToolsVersion);
145
LoggingService.LogComment(this.
BuildEventContext
, MessageImportance.Low, "ToolsVersionInEffectForBuild", toolsVersion);
244
nodeLoggingContext.
BuildEventContext
,
263
LoggingService.LogProjectFinished(
BuildEventContext
, _projectFullPath, success);
BackEnd\Components\Logging\TargetLoggingContext.cs (2)
52
projectLoggingContext.
BuildEventContext
, target.Name, projectFullPath, target.Location.File,
113
LoggingService.LogTargetFinished(
BuildEventContext
, _target.Name, projectFullPath, _target.Location.File, success, targetOutputWrapper);
BackEnd\Components\Logging\TaskLoggingContext.cs (6)
50
targetLoggingContext.
BuildEventContext
,
134
BuildEventContext
,
151
LoggingService.LogTaskWarningFromException(
BuildEventContext
, exception, file, taskName);
156
return LoggingService.GetWarningsAsErrors(
BuildEventContext
);
161
return LoggingService.GetWarningsNotAsErrors(
BuildEventContext
);
166
return LoggingService.GetWarningsAsMessages(
BuildEventContext
);
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (2)
166
if (_loggingContext?.
BuildEventContext
!= null)
168
buildArgs.BuildEventContext = _loggingContext.
BuildEventContext
;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
267
loggingContext.
BuildEventContext
,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (6)
1125
_nodeLoggingContext.
BuildEventContext
.NodeId);
1163
_requestEntry.Request.BuildEventContext = _projectLoggingContext.
BuildEventContext
;
1215
new CheckLoggingContext(_nodeLoggingContext.LoggingService, _projectLoggingContext.
BuildEventContext
),
1348
BuildEventContext projectBuildEventContext = _projectLoggingContext?.
BuildEventContext
;
1362
new CheckLoggingContext(_nodeLoggingContext.LoggingService, _projectLoggingContext!.
BuildEventContext
),
1456
BuildEventContext buildEventContext = _projectLoggingContext?.
BuildEventContext
;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
571
BuildEventContext = _projectLoggingContext.
BuildEventContext
,
BackEnd\Components\RequestBuilder\TargetEntry.cs (4)
372
projectLoggingContext.
BuildEventContext
);
388
BuildEventContext = projectLoggingContext.
BuildEventContext
,
481
TargetUpToDateChecker dependencyAnalyzer = new TargetUpToDateChecker(requestEntry.RequestConfiguration.Project, _target, targetLoggingContext.LoggingService, targetLoggingContext.
BuildEventContext
);
675
_targetResult = new TargetResult(targetOutputItems, aggregateResult, targetLoggingContext?.
BuildEventContext
);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
430
MSBuildEventSource.Log.ExecuteTaskStart(_taskNode?.Name, taskLoggingContext.
BuildEventContext
.TaskId);
434
_buildRequestEntry.Request.CurrentTaskContext = taskLoggingContext.
BuildEventContext
;
490
MSBuildEventSource.Log.ExecuteTaskStop(_taskNode?.Name, taskLoggingContext.
BuildEventContext
.TaskId);
BackEnd\Components\RequestBuilder\TaskHost.cs (11)
362
MSBuildEventSource.Log.ExecuteTaskYieldStart(_taskLoggingContext.TaskName, _taskLoggingContext.
BuildEventContext
.TaskId);
391
MSBuildEventSource.Log.ExecuteTaskYieldStop(_taskLoggingContext.TaskName, _taskLoggingContext.
BuildEventContext
.TaskId);
392
MSBuildEventSource.Log.ExecuteTaskReacquireStart(_taskLoggingContext.TaskName, _taskLoggingContext.
BuildEventContext
.TaskId);
394
MSBuildEventSource.Log.ExecuteTaskReacquireStop(_taskLoggingContext.TaskName, _taskLoggingContext.
BuildEventContext
.TaskId);
457
warningEvent.BuildEventContext = _taskLoggingContext.
BuildEventContext
;
461
_taskLoggingContext.LoggingService.LogComment(_taskLoggingContext.
BuildEventContext
, MessageImportance.Normal, "ErrorConvertedIntoWarning");
465
e.BuildEventContext = _taskLoggingContext.
BuildEventContext
;
509
e.BuildEventContext = _taskLoggingContext.
BuildEventContext
;
550
e.BuildEventContext = _taskLoggingContext.
BuildEventContext
;
591
e.BuildEventContext = _taskLoggingContext.
BuildEventContext
;
674
_taskLoggingContext.LoggingService.LogTelemetry(_taskLoggingContext.
BuildEventContext
, eventName, properties);
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (1)
87
loggingService.LogFatalBuildError(loggingContext.
BuildEventContext
, e, new BuildEventFileInfo(request.ElementLocation));
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (1)
124
INodePacket packet = SdkResolverRequest.Create(submissionId, sdk, loggingContext.
BuildEventContext
, sdkReferenceLocation, solutionPath, projectPath, interactive, isRunningInVisualStudio);
BackEnd\Node\OutOfProcNode.cs (1)
611
_loggingContext?.
BuildEventContext
?? BuildEventContext.Invalid, null, BuildEventFileInfo.Empty,
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
538
new(checkEventStats) { BuildEventContext = loggingContext.
BuildEventContext
};
Definition\ProjectProperty.cs (2)
109
args.BuildEventContext = loggingContext.
BuildEventContext
;
128
args.BuildEventContext = loggingContext.
BuildEventContext
;
Evaluation\ConditionEvaluator.cs (1)
259
conditionParser.LogBuildEventContext = loggingContext?.
BuildEventContext
?? BuildEventContext.Invalid;
Evaluation\Evaluator.cs (9)
237
IDirectoryCache directoryCache = directoryCacheFactory?.GetDirectoryCacheForEvaluation(_evaluationLoggingContext.
BuildEventContext
.EvaluationId);
628
_data.EvaluationId = _evaluationLoggingContext.
BuildEventContext
.EvaluationId;
1718
BuildEventContext = _evaluationLoggingContext.
BuildEventContext
,
1825
BuildEventContext = _evaluationLoggingContext.
BuildEventContext
,
2007
BuildEventContext = _evaluationLoggingContext.
BuildEventContext
,
2068
BuildEventContext = _evaluationLoggingContext.
BuildEventContext
,
2209
BuildEventContext = _evaluationLoggingContext.
BuildEventContext
,
2240
BuildEventContext = _evaluationLoggingContext.
BuildEventContext
,
2295
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
;
TelemetryInfra\TelemetryForwarderProvider.cs (1)
77
{ BuildEventContext = loggingContext.
BuildEventContext
};
Microsoft.Build.Engine.UnitTests (4)
BackEnd\LoggingContext_Tests.cs (2)
39
context.
BuildEventContext
.NodeId.ShouldBe(1);
48
context2.
BuildEventContext
.NodeId.ShouldBe(2);
BackEnd\TaskExecutionHost_Tests.cs (2)
1000
_host.InitializeForBatch(new TaskLoggingContext(_loggingService, tlc.
BuildEventContext
), _bucket, null);
1029
_host.InitializeForBatch(new TaskLoggingContext(_loggingService, tlc.
BuildEventContext
), _bucket, null);