1 implementation of BuildEventContext
Microsoft.Build (1)
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (1)
28public BuildEventContext BuildEventContext => _eventContext;
20 references to BuildEventContext
Microsoft.Build (20)
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
169{ BuildEventContext = checkContext.BuildEventContext };
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (9)
121eventArgs.BuildEventContext = checkContext.BuildEventContext!; 444if (_deferredProjectEvalIdToImportedProjects.TryGetValue(checkContext.BuildEventContext.EvaluationId, out HashSet<string>? importedProjects)) 446if (importedProjects != null && TryGetProjectFullPath(checkContext.BuildEventContext, out string projectPath)) 464if (TryGetProjectFullPath(checkContext.BuildEventContext, out string projectPath)) 483PropagateImport(checkContext.BuildEventContext.EvaluationId, projectImportedEventArgs.ProjectFile, projectImportedEventArgs.ImportedProjectFile); 620_projectsByEvaluationId[checkContext.BuildEventContext.EvaluationId] = projectFullPath; 623!_deferredProjectEvalIdToImportedProjects.ContainsKey(checkContext.BuildEventContext.EvaluationId)) 625_deferredProjectEvalIdToImportedProjects.Add(checkContext.BuildEventContext.EvaluationId, 642BuildEventContext buildEventContext = checkContext.BuildEventContext;
BuildCheck\Infrastructure\BuildEventsProcessor.cs (3)
107EnvironmentVariableCheckData checkData = new(projectPath, checkContext.BuildEventContext?.ProjectInstanceId, envVarKey, envVarValue, elementLocation); 117ProjectImportedCheckData checkData = new(importedProjectPath, projectPath, checkContext.BuildEventContext?.ProjectInstanceId); 240new ProjectRequestProcessingDoneData(projectFullPath, checkContext.BuildEventContext.ProjectInstanceId),
BuildCheck\Infrastructure\CheckContext\ICheckContext.cs (6)
11/// Interface that contains an instance of <see cref="BuildEventContext"/> and methods to dispatch it. 16/// Instance of <see cref="BuildEventContext"/>. 21/// Dispatch the instance of <see cref="BuildEventContext"/> as a comment. 31/// Dispatch the instance of <see cref="BuildEventContext"/> as an error message. 36/// Dispatch the instance of <see cref="BuildEventContext"/> as a comment with provided text for the message. 41/// Dispatch the instance of <see cref="BuildEventContext"/> as a warning message.
BuildCheck\Infrastructure\CheckWrapper.cs (1)
159eventArgs.BuildEventContext = checkContext.BuildEventContext;