78 references to BuildEventContext
Microsoft.Build (74)
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)
107LoggingService.LogComment(this.BuildEventContext, MessageImportance.Low, "ToolsVersionInEffectForBuild", projectStarted.ToolsVersion); 146LoggingService.LogComment(this.BuildEventContext, MessageImportance.Low, "ToolsVersionInEffectForBuild", toolsVersion); 245nodeLoggingContext.BuildEventContext, 264LoggingService.LogProjectFinished(BuildEventContext, _projectFullPath, success);
BackEnd\Components\Logging\TargetLoggingContext.cs (2)
53projectLoggingContext.BuildEventContext, target.Name, projectFullPath, target.Location.File, 114LoggingService.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)
268loggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (6)
1138_nodeLoggingContext.BuildEventContext.NodeId); 1176_requestEntry.Request.BuildEventContext = _projectLoggingContext.BuildEventContext; 1226new CheckLoggingContext(_nodeLoggingContext.LoggingService, _projectLoggingContext.BuildEventContext), 1279BuildEventContext projectBuildEventContext = _projectLoggingContext?.BuildEventContext; 1293new CheckLoggingContext(_nodeLoggingContext.LoggingService, _projectLoggingContext!.BuildEventContext), 1387BuildEventContext buildEventContext = _projectLoggingContext?.BuildEventContext;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
561BuildEventContext = _projectLoggingContext.BuildEventContext,
BackEnd\Components\RequestBuilder\TargetEntry.cs (4)
372projectLoggingContext.BuildEventContext); 388BuildEventContext = projectLoggingContext.BuildEventContext, 481TargetUpToDateChecker 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)
430MSBuildEventSource.Log.ExecuteTaskStart(_taskNode?.Name, taskLoggingContext.BuildEventContext.TaskId); 431_buildRequestEntry.Request.CurrentTaskContext = taskLoggingContext.BuildEventContext; 486MSBuildEventSource.Log.ExecuteTaskStop(_taskNode?.Name, taskLoggingContext.BuildEventContext.TaskId);
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\BuildCheckManagerProvider.cs (1)
499new(checkEventStats) { BuildEventContext = loggingContext.BuildEventContext };
Definition\ProjectProperty.cs (2)
109args.BuildEventContext = loggingContext.BuildEventContext; 128args.BuildEventContext = loggingContext.BuildEventContext;
Evaluation\ConditionEvaluator.cs (1)
260conditionParser.LogBuildEventContext = loggingContext?.BuildEventContext ?? BuildEventContext.Invalid;
Evaluation\Evaluator.cs (9)
232IDirectoryCache directoryCache = directoryCacheFactory?.GetDirectoryCacheForEvaluation(_evaluationLoggingContext.BuildEventContext.EvaluationId); 620_data.EvaluationId = _evaluationLoggingContext.BuildEventContext.EvaluationId; 1704BuildEventContext = _evaluationLoggingContext.BuildEventContext, 1811BuildEventContext = _evaluationLoggingContext.BuildEventContext, 1990BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2051BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2192BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2223BuildEventContext = _evaluationLoggingContext.BuildEventContext, 2278BuildEventContext = _evaluationLoggingContext.BuildEventContext,
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (4)
223args.BuildEventContext = _evaluationLoggingContext.BuildEventContext; 242args.BuildEventContext = _evaluationLoggingContext.BuildEventContext; 293args.BuildEventContext = _evaluationLoggingContext.BuildEventContext; 331{ BuildEventContext = _evaluationLoggingContext.BuildEventContext, };
Instance\ProjectPropertyInstance.cs (2)
105args.BuildEventContext = envProperty.loggingContext.BuildEventContext; 119args.BuildEventContext = envProperty.loggingContext.BuildEventContext;
Instance\TaskFactoryLoggingHost.cs (4)
168e.BuildEventContext = _loggingContext.BuildEventContext; 189e.BuildEventContext = _loggingContext.BuildEventContext; 210e.BuildEventContext = _loggingContext.BuildEventContext; 231e.BuildEventContext = _loggingContext.BuildEventContext;
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);