3 writes to BuildEventContext
Microsoft.Build (3)
BackEnd\Components\Logging\ProjectLoggingContext.cs (1)
138this.BuildEventContext = LoggingService.LogProjectStarted(
BackEnd\Components\Logging\TargetLoggingContext.cs (1)
45this.BuildEventContext = LoggingService.LogTargetStarted(projectLoggingContext.BuildEventContext, target.Name, projectFullPath, target.Location.File, parentTargetName, buildReason);
BackEnd\Components\Logging\TaskLoggingContext.cs (1)
69this.BuildEventContext = LoggingService.LogTaskStarted2(
87 references to BuildEventContext
Microsoft.Build (83)
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
63LoggingService.LogFatalTaskError(BuildEventContext, exception, file, taskName);
BackEnd\Components\Logging\EvaluationLoggingContext.cs (2)
32LoggingService.LogProjectEvaluationStarted(BuildEventContext, _projectFile); 45LoggingService.LogProjectEvaluationFinished(BuildEventContext, _projectFile, globalProperties, properties, items, profilerResult);
BackEnd\Components\Logging\LoggingContext.cs (2)
302LoggingService.LogFatalBuildError(BuildEventContext, exception, file); 313_loggingService.LogIncludeFile(BuildEventContext, filePath);
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
100BuildEventContext = projectLoggingContext.BuildEventContext,
BackEnd\Components\Logging\ProjectLoggingContext.cs (3)
139nodeLoggingContext.BuildEventContext, 153LoggingService.LogComment(this.BuildEventContext, MessageImportance.Low, "ToolsVersionInEffectForBuild", toolsVersion); 166LoggingService.LogProjectFinished(BuildEventContext, _projectFullPath, success);
BackEnd\Components\Logging\TargetLoggingContext.cs (2)
45this.BuildEventContext = LoggingService.LogTargetStarted(projectLoggingContext.BuildEventContext, target.Name, projectFullPath, target.Location.File, parentTargetName, buildReason); 104LoggingService.LogTargetFinished(BuildEventContext, _target.Name, projectFullPath, _target.Location.File, success, targetOutputWrapper);
BackEnd\Components\Logging\TaskLoggingContext.cs (6)
70targetLoggingContext.BuildEventContext, 130BuildEventContext, 147LoggingService.LogTaskWarningFromException(BuildEventContext, exception, file, taskName); 152return LoggingService.GetWarningsAsErrors(BuildEventContext); 157return LoggingService.GetWarningsNotAsErrors(BuildEventContext); 162return LoggingService.GetWarningsAsMessages(BuildEventContext);
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (2)
171if (_loggingContext?.BuildEventContext != null) 173buildArgs.BuildEventContext = _loggingContext.BuildEventContext;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (4)
74LoggingContext.BuildEventContext, 181LoggingContext.BuildEventContext, 220LoggingContext.BuildEventContext, 329LoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
264loggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
68LoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (3)
1133_nodeLoggingContext.BuildEventContext.NodeId); 1177_requestEntry.Request.BuildEventContext = _projectLoggingContext.BuildEventContext; 1363BuildEventContext buildEventContext = _projectLoggingContext?.BuildEventContext;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
561BuildEventContext = _projectLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\TargetEntry.cs (7)
355projectLoggingContext.BuildEventContext, 364projectLoggingContext.BuildEventContext); 380BuildEventContext = projectLoggingContext.BuildEventContext, 465TargetUpToDateChecker dependencyAnalyzer = new TargetUpToDateChecker(requestEntry.RequestConfiguration.Project, _target, targetLoggingContext.LoggingService, targetLoggingContext.BuildEventContext); 616projectLoggingContext.BuildEventContext, FileSystems.Default); 669_targetResult = new TargetResult(targetOutputItems, aggregateResult, targetLoggingContext?.BuildEventContext); 708projectLoggingContext.BuildEventContext, FileSystems.Default);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (5)
383_targetLoggingContext.BuildEventContext, 432MSBuildEventSource.Log.ExecuteTaskStart(_taskNode?.Name, taskLoggingContext.BuildEventContext.TaskId); 433_buildRequestEntry.Request.CurrentTaskContext = taskLoggingContext.BuildEventContext; 488MSBuildEventSource.Log.ExecuteTaskStop(_taskNode?.Name, taskLoggingContext.BuildEventContext.TaskId); 1084_targetLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\TaskHost.cs (11)
361MSBuildEventSource.Log.ExecuteTaskYieldStart(_taskLoggingContext.TaskName, _taskLoggingContext.BuildEventContext.TaskId); 390MSBuildEventSource.Log.ExecuteTaskYieldStop(_taskLoggingContext.TaskName, _taskLoggingContext.BuildEventContext.TaskId); 391MSBuildEventSource.Log.ExecuteTaskReacquireStart(_taskLoggingContext.TaskName, _taskLoggingContext.BuildEventContext.TaskId); 393MSBuildEventSource.Log.ExecuteTaskReacquireStop(_taskLoggingContext.TaskName, _taskLoggingContext.BuildEventContext.TaskId); 456warningEvent.BuildEventContext = _taskLoggingContext.BuildEventContext; 460_taskLoggingContext.LoggingService.LogComment(_taskLoggingContext.BuildEventContext, MessageImportance.Normal, "ErrorConvertedIntoWarning"); 464e.BuildEventContext = _taskLoggingContext.BuildEventContext; 508e.BuildEventContext = _taskLoggingContext.BuildEventContext; 549e.BuildEventContext = _taskLoggingContext.BuildEventContext; 590e.BuildEventContext = _taskLoggingContext.BuildEventContext; 673_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)
124INodePacket packet = SdkResolverRequest.Create(submissionId, sdk, loggingContext.BuildEventContext, sdkReferenceLocation, solutionPath, projectPath, interactive, isRunningInVisualStudio);
BuildCheck\Infrastructure\BuildCheckConnectorLogger.cs (1)
141{ BuildEventContext = loggingContext.BuildEventContext };
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
372new(analyzerEventStats) { BuildEventContext = loggingContext.BuildEventContext };
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
190eventArgs.BuildEventContext = loggingContext.BuildEventContext;
Definition\ProjectProperty.cs (1)
104args.BuildEventContext = loggingContext.BuildEventContext;
Evaluation\Evaluator.cs (13)
235IDirectoryCache directoryCache = directoryCacheFactory?.GetDirectoryCacheForEvaluation(_evaluationLoggingContext.BuildEventContext.EvaluationId); 607_data.EvaluationId = _evaluationLoggingContext.BuildEventContext.EvaluationId; 717_evaluationLoggingContext.BuildEventContext, 1357BuildEventContext = _evaluationLoggingContext.BuildEventContext, 1769BuildEventContext = _evaluationLoggingContext.BuildEventContext, 1876BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2055BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2116BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2257BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2288BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2343BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2463_evaluationLoggingContext.BuildEventContext, 2502_evaluationLoggingContext.BuildEventContext,
Evaluation\LazyItemEvaluator.cs (1)
94lazyEvaluator._loggingContext.BuildEventContext,
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (4)
199args.BuildEventContext = _evaluationLoggingContext.BuildEventContext; 218args.BuildEventContext = _evaluationLoggingContext.BuildEventContext; 262args.BuildEventContext = _evaluationLoggingContext.BuildEventContext; 300args.BuildEventContext = _evaluationLoggingContext.BuildEventContext;
Instance\ProjectPropertyInstance.cs (1)
95args.BuildEventContext = envProperty.loggingContext.BuildEventContext;
Instance\TaskFactoryLoggingHost.cs (4)
168e.BuildEventContext = _loggingContext.BuildEventContext; 189e.BuildEventContext = _loggingContext.BuildEventContext; 210e.BuildEventContext = _loggingContext.BuildEventContext; 231e.BuildEventContext = _loggingContext.BuildEventContext;
Instance\TaskRegistry.cs (2)
550TaskRegistry toolsetRegistry = _toolset.GetOverrideTaskRegistry(targetLoggingContext.LoggingService, targetLoggingContext.BuildEventContext, RootElementCache); 609TaskRegistry toolsetRegistry = _toolset.GetTaskRegistry(targetLoggingContext.LoggingService, targetLoggingContext.BuildEventContext, RootElementCache);
Microsoft.Build.Engine.UnitTests (4)
BackEnd\LoggingContext_Tests.cs (2)
40context.BuildEventContext.NodeId.ShouldBe(1); 49context2.BuildEventContext.NodeId.ShouldBe(2);
BackEnd\TaskExecutionHost_Tests.cs (2)
1001_host.InitializeForBatch(new TaskLoggingContext(_loggingService, tlc.BuildEventContext), _bucket, null); 1030_host.InitializeForBatch(new TaskLoggingContext(_loggingService, tlc.BuildEventContext), _bucket, null);