40 references to ProjectContextId
Microsoft.Build (34)
BackEnd\Components\Logging\LoggingService.cs (8)
1247if ((warningEvent = buildEvent as BuildWarningEventArgs) != null && warningEvent.BuildEventContext != null && warningEvent.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 1251else if ((errorEvent = buildEvent as BuildErrorEventArgs) != null && errorEvent.BuildEventContext != null && errorEvent.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 1255else if ((messageEvent = buildEvent as BuildMessageEventArgs) != null && messageEvent.BuildEventContext != null && messageEvent.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 1386if (!_projectFileMap.ContainsKey(projectStartedEventArgs.BuildEventContext.ProjectContextId)) 1388_projectFileMap[projectStartedEventArgs.BuildEventContext.ProjectContextId] = projectStartedEventArgs.ProjectFile; 1399return new WarningsConfigKey(buildEventContext.ProjectInstanceId, buildEventContext.ProjectContextId); 1983_projectFileMap.TryGetValue(context.ProjectContextId, out string projectFile); 1987$"ContextID {context.ProjectContextId} should have been in the ID-to-project file mapping but wasn't! Encountered during logging message: '{eventArgs.Message}'");
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (13)
136if (buildEvent.ProjectFile == null && buildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 138_projectFileMap.TryGetValue(buildEventContext.ProjectContextId, out string projectFile); 139ErrorUtilities.VerifyThrow(projectFile != null, $"ContextID {buildEventContext.ProjectContextId} should have been in the ID-to-project file mapping but wasn't!"); 176if (buildEvent.ProjectFile == null && buildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 178_projectFileMap.TryGetValue(buildEventContext.ProjectContextId, out string projectFile); 179ErrorUtilities.VerifyThrow(projectFile != null, $"ContextID {buildEventContext.ProjectContextId} should have been in the ID-to-project file mapping but wasn't!"); 328if (buildEvent.ProjectFile == null && buildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 330_projectFileMap.TryGetValue(buildEventContext.ProjectContextId, out string projectFile); 331ErrorUtilities.VerifyThrow(projectFile != null, $"ContextID {buildEventContext.ProjectContextId} should have been in the ID-to-project file mapping but wasn't!"); 688_projectFileMap.TryRemove(projectBuildEventContext.ProjectContextId, out _), 689$"ContextID {projectBuildEventContext.ProjectContextId} for project {projectFile} should be in the ID-to-file mapping!"); 711projectBuildEventContext.ProjectContextId, 808targetBuildEventContext.ProjectContextId,
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
553return (cacheResult, buildEventContext.ProjectContextId);
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
35: this(context.ProjectContextId, context.TargetId, context.TaskId)
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
1135Write(buildEventContext.ProjectContextId);
Logging\ParallelLogger\ParallelConsoleLogger.cs (3)
580var projectKey = (e.BuildEventContext.NodeId, e.BuildEventContext.ProjectContextId); 1035var key = (e.BuildEventContext.NodeId, e.BuildEventContext.ProjectContextId); 1174&& e.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId
Logging\ParallelLogger\ParallelLoggerHelpers.cs (6)
230&& (contextX.ProjectContextId == contextY.ProjectContextId); 236return context.ProjectContextId + (context.NodeId << 24); 259&& (contextX.ProjectContextId == contextY.ProjectContextId) 266return context.ProjectContextId + (context.NodeId << 24);
Logging\TerminalLogger\TerminalLogger.cs (1)
52: this(context.ProjectContextId)
Microsoft.Build.Framework (6)
BinaryTranslator.cs (1)
1318_writer.Write(value.ProjectContextId);
BinaryWriterExtensions.cs (1)
81writer.Write(context.ProjectContextId);
BuildEventContext.cs (3)
126return WithInstanceIdAndContextId(other.ProjectInstanceId, other.ProjectContextId); 303&& _projectContextId == buildEventContext.ProjectContextId 313return $"Node={NodeId} Submission={SubmissionId} ProjectContext={ProjectContextId} ProjectInstance={ProjectInstanceId} Eval={EvaluationId} Target={TargetId} Task={TaskId}";
ProjectStartedEventArgs.cs (1)
363writer.Write((Int32)parentProjectBuildEventContext.ProjectContextId);