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