83 references to BuildEventContext
Microsoft.Build (79)
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
63LoggingService.LogFatalTaskError(BuildEventContext, exception, file, taskName);
BackEnd\Components\Logging\EvaluationLoggingContext.cs (3)
33LoggingService.LogProjectEvaluationStarted(BuildEventContext, _projectFile); 35new CheckLoggingContext(LoggingService, BuildEventContext), _projectFile); 48LoggingService.LogProjectEvaluationFinished(BuildEventContext, _projectFile, globalProperties, properties, items, profilerResult);
BackEnd\Components\Logging\LoggingContext.cs (4)
302LoggingService.LogFatalBuildError(BuildEventContext, exception, file); 313_loggingService.LogIncludeFile(BuildEventContext, filePath); 319new CheckLoggingContext(_loggingService, BuildEventContext)); 324new CheckLoggingContext(_loggingService, BuildEventContext));
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
107BuildEventContext = projectLoggingContext.BuildEventContext,
BackEnd\Components\Logging\ProjectLoggingContext.cs (4)
111LoggingService.LogComment(this.BuildEventContext, MessageImportance.Low, "ToolsVersionInEffectForBuild", projectStarted.ToolsVersion); 150LoggingService.LogComment(this.BuildEventContext, MessageImportance.Low, "ToolsVersionInEffectForBuild", toolsVersion); 249nodeLoggingContext.BuildEventContext, 273LoggingService.LogProjectFinished(BuildEventContext, _projectFullPath, success);
BackEnd\Components\Logging\TargetLoggingContext.cs (2)
46projectLoggingContext.BuildEventContext, target.Name, projectFullPath, target.Location.File, 100LoggingService.LogTargetFinished(BuildEventContext, _target.Name, projectFullPath, _target.Location.File, success, targetOutputWrapper);
BackEnd\Components\Logging\TaskLoggingContext.cs (6)
50targetLoggingContext.BuildEventContext, 134BuildEventContext, 151LoggingService.LogTaskWarningFromException(BuildEventContext, exception, file, taskName); 156return LoggingService.GetWarningsAsErrors(BuildEventContext); 161return LoggingService.GetWarningsNotAsErrors(BuildEventContext); 166return LoggingService.GetWarningsAsMessages(BuildEventContext);
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (2)
166if (_loggingContext?.BuildEventContext != null) 168buildArgs.BuildEventContext = _loggingContext.BuildEventContext;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
267loggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (7)
883_projectLoggingContext.ProjectTelemetry.LogProjectTelemetry(_projectLoggingContext.LoggingService, _projectLoggingContext.BuildEventContext); 1126_nodeLoggingContext.BuildEventContext.NodeId); 1186_requestEntry.Request.BuildEventContext = _projectLoggingContext.BuildEventContext; 1235new CheckLoggingContext(_nodeLoggingContext.LoggingService, _projectLoggingContext.BuildEventContext), 1368BuildEventContext projectBuildEventContext = _projectLoggingContext?.BuildEventContext; 1382new CheckLoggingContext(_nodeLoggingContext.LoggingService, _projectLoggingContext!.BuildEventContext), 1476BuildEventContext buildEventContext = _projectLoggingContext?.BuildEventContext;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
571BuildEventContext = _projectLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\TargetEntry.cs (4)
367projectLoggingContext.BuildEventContext); 384BuildEventContext = projectLoggingContext.BuildEventContext, 476TargetUpToDateChecker dependencyAnalyzer = new TargetUpToDateChecker(requestEntry.RequestConfiguration.Project, _target, targetLoggingContext.LoggingService, targetLoggingContext.BuildEventContext); 674_targetResult = new TargetResult(targetOutputItems, aggregateResult, targetLoggingContext?.BuildEventContext);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
431MSBuildEventSource.Log.ExecuteTaskStart(_taskNode?.Name, taskLoggingContext.BuildEventContext.TaskId); 437_buildRequestEntry.Request.CurrentTaskContext = taskLoggingContext.BuildEventContext; 496MSBuildEventSource.Log.ExecuteTaskStop(_taskNode?.Name, taskLoggingContext.BuildEventContext.TaskId);
BackEnd\Components\RequestBuilder\TaskHost.cs (11)
363MSBuildEventSource.Log.ExecuteTaskYieldStart(_taskLoggingContext.TaskName, _taskLoggingContext.BuildEventContext.TaskId); 392MSBuildEventSource.Log.ExecuteTaskYieldStop(_taskLoggingContext.TaskName, _taskLoggingContext.BuildEventContext.TaskId); 393MSBuildEventSource.Log.ExecuteTaskReacquireStart(_taskLoggingContext.TaskName, _taskLoggingContext.BuildEventContext.TaskId); 395MSBuildEventSource.Log.ExecuteTaskReacquireStop(_taskLoggingContext.TaskName, _taskLoggingContext.BuildEventContext.TaskId); 458warningEvent.BuildEventContext = _taskLoggingContext.BuildEventContext; 462_taskLoggingContext.LoggingService.LogComment(_taskLoggingContext.BuildEventContext, MessageImportance.Normal, "ErrorConvertedIntoWarning"); 466e.BuildEventContext = _taskLoggingContext.BuildEventContext; 510e.BuildEventContext = _taskLoggingContext.BuildEventContext; 551e.BuildEventContext = _taskLoggingContext.BuildEventContext; 592e.BuildEventContext = _taskLoggingContext.BuildEventContext; 675_taskLoggingContext.LoggingService.LogTelemetry(_taskLoggingContext.BuildEventContext, eventName, properties);
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (1)
87loggingService.LogFatalBuildError(loggingContext.BuildEventContext, e, new BuildEventFileInfo(request.ElementLocation));
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (1)
129INodePacket packet = SdkResolverRequest.Create(submissionId, sdk, loggingContext.BuildEventContext, sdkReferenceLocation, solutionPath, projectPath, interactive, isRunningInVisualStudio);
BackEnd\Node\OutOfProcNode.cs (1)
616_loggingContext?.BuildEventContext ?? BuildEventContext.Invalid, null, BuildEventFileInfo.Empty,
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
538new(checkEventStats) { BuildEventContext = loggingContext.BuildEventContext };
Definition\ProjectProperty.cs (2)
109args.BuildEventContext = loggingContext.BuildEventContext; 128args.BuildEventContext = loggingContext.BuildEventContext;
Evaluation\ConditionEvaluator.cs (1)
262conditionParser.LogBuildEventContext = loggingContext?.BuildEventContext ?? BuildEventContext.Invalid;
Evaluation\Evaluator.cs (9)
237IDirectoryCache directoryCache = directoryCacheFactory?.GetDirectoryCacheForEvaluation(_evaluationLoggingContext.BuildEventContext.EvaluationId); 633_data.EvaluationId = _evaluationLoggingContext.BuildEventContext.EvaluationId; 1723BuildEventContext = _evaluationLoggingContext.BuildEventContext, 1837BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2041BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2102BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2243BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2274BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2329BuildEventContext = _evaluationLoggingContext.BuildEventContext,
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (6)
239args.BuildEventContext = _evaluationLoggingContext.BuildEventContext; 257BuildEventContext = _evaluationLoggingContext.BuildEventContext, 315{ BuildEventContext = _evaluationLoggingContext.BuildEventContext, }; 353{ BuildEventContext = _evaluationLoggingContext.BuildEventContext, }; 475{ BuildEventContext = loggingContext.BuildEventContext }; 495{ BuildEventContext = loggingContext.BuildEventContext, };
Instance\ProjectPropertyInstance.cs (2)
105args.BuildEventContext = envProperty.loggingContext.BuildEventContext; 119args.BuildEventContext = envProperty.loggingContext.BuildEventContext;
Instance\TaskFactoryEngineContext.cs (4)
212e.BuildEventContext = _loggingContext.BuildEventContext; 233e.BuildEventContext = _loggingContext.BuildEventContext; 254e.BuildEventContext = _loggingContext.BuildEventContext; 275e.BuildEventContext = _loggingContext.BuildEventContext;
TelemetryInfra\TelemetryForwarderProvider.cs (1)
77{ BuildEventContext = loggingContext.BuildEventContext };
Microsoft.Build.Engine.UnitTests (4)
BackEnd\LoggingContext_Tests.cs (2)
39context.BuildEventContext.NodeId.ShouldBe(1); 48context2.BuildEventContext.NodeId.ShouldBe(2);
BackEnd\TaskExecutionHost_Tests.cs (2)
1001_host.InitializeForBatch(new TaskLoggingContext(_loggingService, tlc.BuildEventContext), _bucket, null, scheduledNodeId: 1); 1030_host.InitializeForBatch(new TaskLoggingContext(_loggingService, tlc.BuildEventContext), _bucket, null, scheduledNodeId: 1);