2 implementations of BuildEventContext
Microsoft.Build (2)
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (1)
29
public BuildEventContext
BuildEventContext
=> _eventContext;
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (1)
24
public BuildEventContext
BuildEventContext
=> eventContext;
20 references to BuildEventContext
Microsoft.Build (20)
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
198
{ BuildEventContext = checkContext.
BuildEventContext
};
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (9)
123
eventArgs.BuildEventContext = checkContext.
BuildEventContext
!;
448
if (_deferredProjectEvalIdToImportedProjects.TryGetValue(checkContext.
BuildEventContext
.EvaluationId, out HashSet<string>? importedProjects))
450
if (importedProjects != null && TryGetProjectFullPath(checkContext.
BuildEventContext
, out string projectPath))
468
if (TryGetProjectFullPath(checkContext.
BuildEventContext
, out string projectPath))
487
PropagateImport(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,
646
BuildEventContext buildEventContext = checkContext.
BuildEventContext
;
BuildCheck\Infrastructure\BuildEventsProcessor.cs (3)
109
EnvironmentVariableCheckData checkData = new(projectPath, checkContext.
BuildEventContext
?.ProjectInstanceId, envVarKey, envVarValue, elementLocation);
119
ProjectImportedCheckData checkData = new(importedProjectPath, projectPath, checkContext.
BuildEventContext
?.ProjectInstanceId);
241
new 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)
159
eventArgs.BuildEventContext = checkContext.
BuildEventContext
;