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)
124eventArgs.BuildEventContext = checkContext.BuildEventContext!; 453if (_deferredProjectEvalIdToImportedProjects.TryGetValue(checkContext.BuildEventContext.EvaluationId, out HashSet<string>? importedProjects)) 455if (importedProjects != null && TryGetProjectFullPath(checkContext.BuildEventContext, out string projectPath)) 473if (TryGetProjectFullPath(checkContext.BuildEventContext, out string projectPath)) 492PropagateImport(checkContext.BuildEventContext.EvaluationId, projectImportedEventArgs.ProjectFile, projectImportedEventArgs.ImportedProjectFile); 629_projectsByEvaluationId[checkContext.BuildEventContext.EvaluationId] = projectFullPath; 632!_deferredProjectEvalIdToImportedProjects.ContainsKey(checkContext.BuildEventContext.EvaluationId)) 634_deferredProjectEvalIdToImportedProjects.Add(checkContext.BuildEventContext.EvaluationId, 651BuildEventContext 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;