1 write to ProjectInstance
Microsoft.Build (1)
BackEnd\BuildManager\BuildRequestData.cs (1)
74
ProjectInstance
= projectInstance;
22 references to ProjectInstance
Microsoft.Build (17)
BackEnd\BuildManager\BuildManager.cs (5)
1245
ProjectInstance? projectInstance = submission.BuildRequestData.
ProjectInstance
;
1274
submission.BuildRequestData.
ProjectInstance
!= null,
1279
if (!_unnamedProjectInstanceToNames.TryGetValue(submission.BuildRequestData.
ProjectInstance
!, out var tempName))
1282
_unnamedProjectInstanceToNames[submission.BuildRequestData.
ProjectInstance
!] = tempName;
1286
submission.BuildRequestData.
ProjectInstance
!.GetProperty(ReservedPropertyNames.projectDirectory)!.EvaluatedValue,
BackEnd\Components\ProjectCache\ProjectCacheService.cs (4)
503
ErrorUtilities.VerifyThrowInternalNull(buildRequest.
ProjectInstance
, nameof(buildRequest.
ProjectInstance
));
525
foreach (ProjectCacheDescriptor projectCacheDescriptor in GetProjectCacheDescriptors(buildRequest.
ProjectInstance
!))
589
_loggingService.LogComment(buildEventContext, MessageImportance.High, "ProjectCacheHitWithOutputs", buildRequest.
ProjectInstance
!.GetPropertyValue(ReservedPropertyNames.projectName));
BackEnd\Shared\BuildRequestConfiguration.cs (8)
181
if (data.
ProjectInstance
!= null)
183
_project = data.
ProjectInstance
;
184
_projectInitialTargets = data.
ProjectInstance
.InitialTargets;
185
_projectDefaultTargets = data.
ProjectInstance
.DefaultTargets;
186
_projectTargets = GetProjectTargets(data.
ProjectInstance
.Targets);
192
_transferredProperties.Add(data.
ProjectInstance
.GetProperty(name));
1051
if (data.
ProjectInstance
!= null)
1053
return data.
ProjectInstance
.Toolset.ToolsVersion;
Microsoft.Build.Engine.UnitTests (4)
BackEnd\BuildManager_Tests.cs (3)
1406
var data2 = new BuildRequestData(data.
ProjectInstance
, data.TargetNames.ToArray(), data.HostServices);
1457
var data2 = new BuildRequestData(data.
ProjectInstance
, new[] { "MaySkip" }, data.HostServices);
2223
_env.CreateFile(data.ProjectFullPath, data.
ProjectInstance
.ToProjectRootElement().RawXml);
ProjectCache\ProjectCacheTests.cs (1)
300
buildRequest.
ProjectInstance
.ShouldNotBeNull("The cache plugin expects evaluated projects.");
ProjectCachePlugin (1)
AssemblyMockCache.cs (1)
50
buildRequest.
ProjectInstance
.ShouldNotBeNull("The cache plugin expects evaluated projects.");