1 implementation of BuildEventContext
Microsoft.Build (1)
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (1)
28
public BuildEventContext
BuildEventContext
=> _eventContext;
20 references to BuildEventContext
Microsoft.Build (20)
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
169
{ BuildEventContext = checkContext.
BuildEventContext
};
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (9)
121
eventArgs.BuildEventContext = checkContext.
BuildEventContext
!;
411
if (_deferredProjectEvalIdToImportedProjects.TryGetValue(checkContext.
BuildEventContext
.EvaluationId, out HashSet<string>? importedProjects))
413
if (importedProjects != null && TryGetProjectFullPath(checkContext.
BuildEventContext
, out string projectPath))
431
if (TryGetProjectFullPath(checkContext.
BuildEventContext
, out string projectPath))
450
PropagateImport(checkContext.
BuildEventContext
.EvaluationId, projectImportedEventArgs.ProjectFile, projectImportedEventArgs.ImportedProjectFile);
583
_projectsByEvaluationId[checkContext.
BuildEventContext
.EvaluationId] = projectFullPath;
586
!_deferredProjectEvalIdToImportedProjects.ContainsKey(checkContext.
BuildEventContext
.EvaluationId))
588
_deferredProjectEvalIdToImportedProjects.Add(checkContext.
BuildEventContext
.EvaluationId,
605
BuildEventContext buildEventContext = checkContext.
BuildEventContext
;
BuildCheck\Infrastructure\BuildEventsProcessor.cs (3)
107
EnvironmentVariableCheckData checkData = new(projectPath, checkContext.
BuildEventContext
?.ProjectInstanceId, envVarKey, envVarValue, elementLocation);
117
ProjectImportedCheckData checkData = new(importedProjectPath, projectPath, checkContext.
BuildEventContext
?.ProjectInstanceId);
240
new 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)
159
eventArgs.BuildEventContext = checkContext.
BuildEventContext
;