2 implementations of BuildEventContext
Microsoft.Build (2)
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (1)
29public BuildEventContext BuildEventContext => _eventContext;
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (1)
24public BuildEventContext BuildEventContext => eventContext;
20 references to BuildEventContext
Microsoft.Build (20)
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
198{ BuildEventContext = checkContext.BuildEventContext };
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (9)
123eventArgs.BuildEventContext = checkContext.BuildEventContext!; 448if (_deferredProjectEvalIdToImportedProjects.TryGetValue(checkContext.BuildEventContext.EvaluationId, out HashSet<string>? importedProjects)) 450if (importedProjects != null && TryGetProjectFullPath(checkContext.BuildEventContext, out string projectPath)) 468if (TryGetProjectFullPath(checkContext.BuildEventContext, out string projectPath)) 487PropagateImport(checkContext.BuildEventContext.EvaluationId, projectImportedEventArgs.ProjectFile, projectImportedEventArgs.ImportedProjectFile); 624_projectsByEvaluationId[checkContext.BuildEventContext.EvaluationId] = projectFullPath; 627!_deferredProjectEvalIdToImportedProjects.ContainsKey(checkContext.BuildEventContext.EvaluationId)) 629_deferredProjectEvalIdToImportedProjects.Add(checkContext.BuildEventContext.EvaluationId, 646BuildEventContext buildEventContext = checkContext.BuildEventContext;
BuildCheck\Infrastructure\BuildEventsProcessor.cs (3)
109EnvironmentVariableCheckData checkData = new(projectPath, checkContext.BuildEventContext?.ProjectInstanceId, envVarKey, envVarValue, elementLocation); 119ProjectImportedCheckData checkData = new(importedProjectPath, projectPath, checkContext.BuildEventContext?.ProjectInstanceId); 241new ProjectRequestProcessingDoneData(projectFullPath, checkContext.BuildEventContext.ProjectInstanceId),
BuildCheck\Infrastructure\CheckContext\ICheckContext.cs (6)
12/// Interface that contains an instance of <see cref="BuildEventContext"/> and methods to dispatch it. 17/// Instance of <see cref="BuildEventContext"/>. 22/// Dispatch the instance of <see cref="BuildEventContext"/> as a comment. 32/// Dispatch the instance of <see cref="BuildEventContext"/> as an error message. 42/// Dispatch the instance of <see cref="BuildEventContext"/> as a comment with provided text for the message. 47/// Dispatch the instance of <see cref="BuildEventContext"/> as a warning message.
BuildCheck\Infrastructure\CheckWrapper.cs (1)
159eventArgs.BuildEventContext = checkContext.BuildEventContext;