25 references to EvaluationId
Microsoft.Build (17)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (11)
408
if (_deferredProjectEvalIdToImportedProjects.TryGetValue(checkContext.BuildEventContext.
EvaluationId
, out HashSet<string>? importedProjects))
449
PropagateImport(checkContext.BuildEventContext.
EvaluationId
, projectImportedEventArgs.ProjectFile, projectImportedEventArgs.ImportedProjectFile);
518
if (buildEventContext.
EvaluationId
>= 0)
520
if (_projectsByEvaluationId.TryGetValue(buildEventContext.
EvaluationId
, out string? val))
577
_projectsByEvaluationId[checkContext.BuildEventContext.
EvaluationId
] = projectFullPath;
578
_deferredProjectEvalIdToImportedProjects.TryAdd(checkContext.BuildEventContext.
EvaluationId
, [projectFullPath]);
598
if (_deferredEvalDiagnostics.TryGetValue(buildEventContext.
EvaluationId
, out var list))
606
_deferredEvalDiagnostics.Remove(buildEventContext.
EvaluationId
);
642
eventArgs.BuildEventContext.
EvaluationId
== BuildEventContext.InvalidEvaluationId ||
654
if (!_deferredEvalDiagnostics.TryGetValue(eventArgs.BuildEventContext.
EvaluationId
, out var list))
657
_deferredEvalDiagnostics[eventArgs.BuildEventContext.
EvaluationId
] = list;
Definition\Project.cs (2)
832
/// This number corresponds to the <see cref="BuildEventContext.
EvaluationId
"/> and can be used to connect
2486
/// This number corresponds to the <see cref="BuildEventContext.
EvaluationId
"/> and can be used to connect
Evaluation\Evaluator.cs (2)
232
IDirectoryCache directoryCache = directoryCacheFactory?.GetDirectoryCacheForEvaluation(_evaluationLoggingContext.BuildEventContext.
EvaluationId
);
620
_data.EvaluationId = _evaluationLoggingContext.BuildEventContext.
EvaluationId
;
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
1078
Write(buildEventContext.
EvaluationId
);
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
645
=> (buildEventContext.NodeId, -buildEventContext.
EvaluationId
);
Microsoft.Build.Engine.UnitTests (3)
BackEnd\BuildManager_Tests.cs (1)
3967
Assert.True(_logger.AllBuildEvents.OfType<ProjectEvaluationStartedEventArgs>().GroupBy(args => args.BuildEventContext.
EvaluationId
).All(g => g.Count() == 1));
Evaluation\EvaluationLogging_Tests.cs (2)
118
buildEvent.BuildEventContext.
EvaluationId
.ShouldBe(evaluationId);
149
var eventEvaluationId = args.BuildEventContext.
EvaluationId
;
Microsoft.Build.Framework (3)
BinaryTranslator.cs (1)
1159
_writer.Write(value.
EvaluationId
);
BinaryWriterExtensions.cs (1)
96
writer.Write(context.
EvaluationId
);
BuildEventContext.cs (1)
313
return $"Node={NodeId} Submission={SubmissionId} ProjectContext={ProjectContextId} ProjectInstance={ProjectInstanceId} Eval={
EvaluationId
} Target={TargetId} Task={TaskId}";
Microsoft.Build.Framework.UnitTests (2)
EventArgs_Tests.cs (2)
111
startedEvent.ParentProjectBuildEventContext.
EvaluationId
.ShouldBe(0);
119
startedEvent.BuildEventContext.
EvaluationId
.ShouldBe(2);