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