31 references to ProjectInstanceId
Microsoft.Build (19)
BackEnd\BuildManager\BuildManager.cs (1)
994BuildResult result = _resultsCache!.GetResultsForConfiguration(projectStartedEvent.Value.BuildEventContext!.ProjectInstanceId);
BackEnd\Components\Logging\LoggingService.cs (3)
1372return new WarningsConfigKey(buildEventContext.ProjectInstanceId, buildEventContext.ProjectContextId); 1957if (_warningsAsMessagesByProject != null && warningEvent.BuildEventContext != null && warningEvent.BuildEventContext.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId) 1994if (_warningsAsErrorsByProject != null && warningEvent.BuildEventContext != null && warningEvent.BuildEventContext.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (2)
642projectBuildEventContext.ProjectInstanceId, 739targetBuildEventContext.ProjectInstanceId,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1391if (project != null && buildEventContext != null && loggingService != null && buildEventContext.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (4)
526else if (buildEventContext.ProjectInstanceId >= 0) 528if (_projectsByInstanceId.TryGetValue(buildEventContext.ProjectInstanceId, out string? val)) 596_projectsByInstanceId[buildEventContext.ProjectInstanceId] = projectFullPath; 644eventArgs.BuildEventContext.ProjectInstanceId != BuildEventContext.InvalidProjectInstanceId ||
BuildCheck\Infrastructure\BuildEventsProcessor.cs (6)
68evaluationFinishedEventArgs.BuildEventContext?.ProjectInstanceId, 84evaluationFinishedEventArgs.BuildEventContext?.ProjectInstanceId, 98EnvironmentVariableCheckData checkData = new(projectPath, checkContext.BuildEventContext?.ProjectInstanceId, envVarKey, envVarValue, elementLocation); 108ProjectImportedCheckData checkData = new(importedProjectPath, projectPath, checkContext.BuildEventContext?.ProjectInstanceId); 150projectConfigurationId: taskStartedEventArgs.BuildEventContext.ProjectInstanceId, 231new ProjectRequestProcessingDoneData(projectFullPath, checkContext.BuildEventContext.ProjectInstanceId),
BuildCheck\OM\ParsedItemsCheckData.cs (1)
66: base(evaluationFinishedEventArgs.ProjectFile!, evaluationFinishedEventArgs.BuildEventContext?.ProjectInstanceId)
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
1077Write(buildEventContext.ProjectInstanceId);
Microsoft.Build.Engine.UnitTests (5)
BackEnd\LoggingService_Tests.cs (2)
968configCache.AddConfiguration(new BuildRequestConfiguration(buildEventContext.ProjectInstanceId, buildRequestData, buildRequestData.ExplicitlySpecifiedToolsVersion)); 978BuildEventContext projectStarted = loggingService.LogProjectStarted(buildEventContext, 0, buildEventContext.ProjectInstanceId, BuildEventContext.Invalid, "projectFile", "Build", Enumerable.Empty<DictionaryEntry>(), Enumerable.Empty<DictionaryEntry>());
BuildEventArgsSerialization_Tests.cs (1)
1193return $"{context.BuildRequestId} {context.NodeId} {context.ProjectContextId} {context.ProjectInstanceId} {context.SubmissionId} {context.TargetId} {context.TaskId}";
Graph\IsolateProjects_Tests.cs (1)
216logger.Errors.First().BuildEventContext.ProjectInstanceId.ShouldNotBe(BuildEventContext.InvalidProjectInstanceId);
Graph\ResultCacheBasedBuilds_Tests.cs (1)
401results["1"].Logger.Errors.First().BuildEventContext.ProjectInstanceId.ShouldNotBe(BuildEventContext.InvalidProjectInstanceId);
Microsoft.Build.Framework (5)
BinaryTranslator.cs (1)
1160_writer.Write(value.ProjectInstanceId);
BinaryWriterExtensions.cs (1)
95writer.Write(context.ProjectInstanceId);
BuildEventContext.cs (2)
126return WithInstanceIdAndContextId(other.ProjectInstanceId, other.ProjectContextId); 313return $"Node={NodeId} Submission={SubmissionId} ProjectContext={ProjectContextId} ProjectInstance={ProjectInstanceId} Eval={EvaluationId} Target={TargetId} Task={TaskId}";
ProjectStartedEventArgs.cs (1)
368writer.Write((Int32)parentProjectBuildEventContext.ProjectInstanceId);
Microsoft.Build.Framework.UnitTests (2)
EventArgs_Tests.cs (2)
112startedEvent.ParentProjectBuildEventContext.ProjectInstanceId.ShouldBe(0); 120startedEvent.BuildEventContext.ProjectInstanceId.ShouldBe(3);