37 references to ProjectInstanceSettings
Microsoft.Build (24)
Definition\Project.cs (8)
1369return CreateProjectInstance(ProjectInstanceSettings.None, null); 1381public ProjectInstance CreateProjectInstance(ProjectInstanceSettings settings) 1387/// See <see cref="CreateProjectInstance(ProjectInstanceSettings)"/>. 1392public ProjectInstance CreateProjectInstance(ProjectInstanceSettings settings, EvaluationContext evaluationContext) 3288/// See <see cref="ProjectLink.CreateProjectInstance(ProjectInstanceSettings, EvaluationContext)"/>. 3293public override ProjectInstance CreateProjectInstance(ProjectInstanceSettings settings, EvaluationContext evaluationContext) 3361ProjectInstance instance = CreateProjectInstance(LoggingService, ProjectInstanceSettings.None, evaluationContext); 3722ProjectInstanceSettings settings,
Graph\ProjectGraph.cs (1)
48/// <see cref="ProjectInstanceSettings.Immutable" />, the resulting ProjectGraph
Instance\ProjectInstance.cs (13)
376public ProjectInstance(Project project, ProjectInstanceSettings settings) 387var immutable = (settings & ProjectInstanceSettings.Immutable) == ProjectInstanceSettings.Immutable; 391var keepEvaluationCache = (settings & ProjectInstanceSettings.ImmutableWithFastItemLookup) == ProjectInstanceSettings.ImmutableWithFastItemLookup; 673internal ProjectInstance(Evaluation.Project.Data data, string directory, string fullPath, HostServices hostServices, PropertyDictionary<ProjectPropertyInstance> environmentVariableProperties, ProjectInstanceSettings settings) 685var immutable = (settings & ProjectInstanceSettings.Immutable) == ProjectInstanceSettings.Immutable; 690var keepEvaluationCache = (settings & ProjectInstanceSettings.ImmutableWithFastItemLookup) == ProjectInstanceSettings.ImmutableWithFastItemLookup; 956/// <param name="settings">The <see cref="ProjectInstanceSettings"/> to use.</param> 957public static ProjectInstance FromImmutableProjectSource(Project project, ProjectInstanceSettings settings) 959bool fastItemLookupNeeded = settings.HasFlag(ProjectInstanceSettings.ImmutableWithFastItemLookup);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (2)
232/// Facilitate remoting the <see cref="Project.CreateProjectInstance(ProjectInstanceSettings, EvaluationContext)"/>. 234public abstract ProjectInstance CreateProjectInstance(ProjectInstanceSettings settings, EvaluationContext evaluationContext);
Microsoft.Build.Engine.OM.UnitTests (4)
Instance\ProjectInstance_Tests.cs (2)
469var projBInstance = new ProjectInstance(projBEval, ProjectInstanceSettings.ImmutableWithFastItemLookup); 1031ProjectInstance instance = immutable ? project.CreateProjectInstance(ProjectInstanceSettings.Immutable) : project.CreateProjectInstance();
Instance\ProjectPropertyInstance_Tests.cs (1)
93var snapshot = project.CreateProjectInstance(ProjectInstanceSettings.Immutable);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (1)
185public override ProjectInstance CreateProjectInstance(ProjectInstanceSettings settings, EvaluationContext evaluationContext) => throw new NotImplementedException();
Microsoft.Build.Engine.UnitTests (9)
BackEnd\BuildManager_Tests.cs (3)
3751var mainInstance = mainProject.CreateProjectInstance(ProjectInstanceSettings.Immutable).DeepCopy(isImmutable: false); 3778var p2pInstance = p2pProject.CreateProjectInstance(ProjectInstanceSettings.Immutable).DeepCopy(isImmutable: false); 3903ProjectInstance instance = project.CreateProjectInstance(ProjectInstanceSettings.Immutable).DeepCopy(false);
BackEnd\SdkResultOutOfProc_Tests.cs (1)
211return project.CreateProjectInstance(ProjectInstanceSettings.None, projectOptions.EvaluationContext);
InstanceFromRemote\FakeProjectLink.cs (1)
87public override ProjectInstance CreateProjectInstance(ProjectInstanceSettings settings, EvaluationContext evaluationContext) => throw new NotImplementedException();
InstanceFromRemote\ProjectInstance_FromImmutableProjectLink_Tests.cs (4)
26ProjectInstance instance = ProjectInstance.FromImmutableProjectSource(project, ProjectInstanceSettings.ImmutableWithFastItemLookup); 44ProjectInstance instance = ProjectInstance.FromImmutableProjectSource(project, ProjectInstanceSettings.ImmutableWithFastItemLookup); 65ProjectInstance instance = ProjectInstance.FromImmutableProjectSource(project, ProjectInstanceSettings.ImmutableWithFastItemLookup); 100ProjectInstance instance = ProjectInstance.FromImmutableProjectSource(project, ProjectInstanceSettings.ImmutableWithFastItemLookup);