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