134 references to CreateProjectInstance
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
1522ProjectInstance newInstance = project.CreateProjectInstance();
Graph\ProjectGraph.cs (1)
47/// using <see cref="Project.CreateProjectInstance()" /> with the flag
Microsoft.Build.Engine.OM.UnitTests (35)
Definition\DefinitionEditing_Tests.cs (10)
168Assert.Equal("i1", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].EvaluatedInclude); 195Assert.Equal("i(1)", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].EvaluatedInclude); 1313Assert.Empty(Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))); 1487Assert.Equal("v1", project.CreateProjectInstance().GetPropertyValue("p1")); 1512Assert.Equal("v^1", project.CreateProjectInstance().GetPropertyValue("p1")); 1831ProjectInstance instance = project.CreateProjectInstance(); 1884Assert.Equal("m1", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].GetMetadataValue("m")); 1912Assert.Equal("m1$$", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].GetMetadataValue("m")); 2092Assert.Equal("i1", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].EvaluatedInclude); 2119Assert.Equal("i(1)", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].EvaluatedInclude);
Definition\Project_Tests.cs (3)
1765ProjectInstance projectInstance = project.CreateProjectInstance(); 3867var projectInstance = project.CreateProjectInstance(); 3879var newProjectInstance = project.CreateProjectInstance();
Definition\ProjectItemDefinition_Tests.cs (1)
454ProjectInstance instance = project.CreateProjectInstance();
Instance\ProjectInstance_Tests.cs (8)
41ProjectInstance i = p.CreateProjectInstance(); 205ProjectInstance instance = p.CreateProjectInstance(); 398ProjectInstance instance1 = new Project().CreateProjectInstance(); 404new Project().CreateProjectInstance(); 428var projBInstance = projBEval.CreateProjectInstance(); 512var projBInstance = projBEval.CreateProjectInstance(); 1032ProjectInstance instance = immutable ? project.CreateProjectInstance(ProjectInstanceSettings.Immutable) : project.CreateProjectInstance(); 1044ProjectInstance instance = project.CreateProjectInstance();
Instance\ProjectItemInstance_Tests.cs (3)
252ProjectInstance projectInstance = project.CreateProjectInstance(); 347ProjectInstance projectInstance = project.CreateProjectInstance(); 1194ProjectInstance projectInstance = project.CreateProjectInstance();
Instance\ProjectMetadataInstance_Tests.cs (1)
35ProjectInstance projectInstance = project.CreateProjectInstance();
Instance\ProjectOnErrorInstance_Tests.cs (1)
48ProjectInstance instance = project.CreateProjectInstance();
Instance\ProjectPropertyInstance_Tests.cs (1)
104ProjectInstance projectInstance = project.CreateProjectInstance();
Instance\ProjectTargetInstance_Tests.cs (4)
57ProjectInstance instance = project.CreateProjectInstance(); 77ProjectInstance instance = project.CreateProjectInstance(); 97ProjectInstance instance = project.CreateProjectInstance(); 148ProjectInstance instance = project.CreateProjectInstance();
Instance\ProjectTaskInstance_Tests.cs (1)
78ProjectInstance instance = project.CreateProjectInstance();
Instance\ProjectTaskOutputItemInstance_Tests.cs (1)
51ProjectInstance instance = project.CreateProjectInstance();
Instance\ProjectTaskOutputPropertyInstance_Tests.cs (1)
51ProjectInstance instance = project.CreateProjectInstance();
Microsoft.Build.Engine.UnitTests (77)
BackEnd\BuildManager_Tests.cs (7)
444var data = new BuildRequestData(project.CreateProjectInstance(), Array.Empty<string>(), _projectCollection.HostServices); 505var data = new BuildRequestData(project.CreateProjectInstance(), new[] { "test", "other" }, 1812BuildResult result2 = _buildManager.BuildRequest(new BuildRequestData(project.CreateProjectInstance(), new[] { "target2" })); 1847BuildResult result2 = _buildManager.BuildRequest(new BuildRequestData(project.CreateProjectInstance(), new[] { "target1" })); 2266ProjectInstance instance = project.CreateProjectInstance(); 2317ProjectInstance instance = project.CreateProjectInstance(); 3579return project.CreateProjectInstance();
BackEnd\BuildRequestConfiguration_Tests.cs (5)
188ProjectInstance projectInstance = project.CreateProjectInstance(); 286ProjectInstance instance = project.CreateProjectInstance(); 363ProjectInstance instance = project.CreateProjectInstance(); 465ProjectInstance instance = project.CreateProjectInstance(); 568var projectInstance = project.CreateProjectInstance();
BackEnd\BuildRequestEngine_Tests.cs (1)
248return project.CreateProjectInstance();
BackEnd\IntrinsicTask_Tests.cs (22)
1279ProjectInstance p = project.CreateProjectInstance(); 1290p = project.CreateProjectInstance(); 1312ProjectInstance p = project.CreateProjectInstance(); 1318p = project.CreateProjectInstance(); 2299ProjectInstance p = project.CreateProjectInstance(); 2307p = project.CreateProjectInstance(); 2333ProjectInstance p = project.CreateProjectInstance(); 2340p = project.CreateProjectInstance(); 2370ProjectInstance p = project.CreateProjectInstance(); 2378p = project.CreateProjectInstance(); 2407ProjectInstance p = project.CreateProjectInstance(); 2414p = project.CreateProjectInstance(); 2444ProjectInstance p = project.CreateProjectInstance(); 2452p = project.CreateProjectInstance(); 2482ProjectInstance p = project.CreateProjectInstance(); 2513ProjectInstance p = project.CreateProjectInstance(); 3200ProjectInstance p = project.CreateProjectInstance(); 3208p = project.CreateProjectInstance(); 3246ProjectInstance p = project.CreateProjectInstance(); 3258p = project.CreateProjectInstance(); 3954ProjectInstance projectInstance = project.CreateProjectInstance(); 3989var projectInstance = project.CreateProjectInstance();
BackEnd\MSBuild_Tests.cs (8)
142ProjectInstance pi = p.CreateProjectInstance(); 555ProjectInstance pi = p.CreateProjectInstance(); 624ProjectInstance pi = p.CreateProjectInstance(); 931ProjectInstance pi = p.CreateProjectInstance(); 1051ProjectInstance pi = p.CreateProjectInstance(); 1120ProjectInstance pi = p.CreateProjectInstance(); 1187ProjectInstance pi = p.CreateProjectInstance(); 1802ProjectInstance pi = p.CreateProjectInstance();
BackEnd\Scheduler_Tests.cs (1)
715BuildRequestData data = new BuildRequestData(project.CreateProjectInstance(), new string[] { "test" });
BackEnd\TargetBuilder_Tests.cs (1)
1680config.Project = project.CreateProjectInstance();
BackEnd\TargetEntry_Tests.cs (1)
1183return project.CreateProjectInstance();
BackEnd\TargetUpToDateChecker_Tests.cs (1)
609ProjectInstance p = project.CreateProjectInstance();
BackEnd\TaskBuilder_Tests.cs (2)
179BuildRequestData data = new BuildRequestData(project.CreateProjectInstance(), new string[] { "test" }, collection.HostServices); 1245config.Project = project.CreateProjectInstance();
BackEnd\TaskExecutionHost_Tests.cs (1)
1565return project.CreateProjectInstance();
Collections\OMcollections_tests.cs (2)
312ProjectInstance projectInstance = project.CreateProjectInstance(); 324ProjectInstance projectInstance = project.CreateProjectInstance();
ConsoleLogger_Tests.cs (3)
221new BuildRequestData(p.CreateProjectInstance(), new[] { "Spawn" })); 262new BuildRequestData(p.CreateProjectInstance(), new[] { "Spawn" })); 314new BuildRequestData(p.CreateProjectInstance(), new[] { "Spawn" }));
Definition\ItemDefinitionGroup_Tests.cs (3)
596ProjectInstance pi = p.CreateProjectInstance(); 632ProjectInstance pi = p.CreateProjectInstance(); 674ProjectInstance pi = p.CreateProjectInstance();
Definition\ProjectHelpers.cs (1)
28ProjectInstance instance = project.CreateProjectInstance();
Definition\ToolsVersion_Tests.cs (2)
637ProjectInstance pi = projectFromString.Project.CreateProjectInstance(); 708ProjectInstance pi = projectFromString.Project.CreateProjectInstance();
EscapingInProjects_Tests.cs (1)
651ProjectInstance projectInstance = project.CreateProjectInstance();
Evaluation\Evaluator_Tests.cs (4)
1427ProjectInstance instance = project.CreateProjectInstance(); 2314ProjectInstance instance = project.CreateProjectInstance(); 2339ProjectInstance instance = project.CreateProjectInstance(); 2363ProjectInstance instance = project.CreateProjectInstance();
Graph\ProjectGraph_Tests.cs (2)
134var projectInstance = new Project().CreateProjectInstance(); 181var projectInstance = new Project().CreateProjectInstance();
Instance\HostServices_Tests.cs (1)
486ProjectInstance instance = project.CreateProjectInstance();
Instance\ProjectInstance_Internal_Tests.cs (6)
71ProjectInstance project = new Project(projectRootElementFromString.Project).CreateProjectInstance(); 119ProjectInstance project = new Project(projectRootElementFromString.Project).CreateProjectInstance(); 145ProjectInstance project = projectFromString.Project.CreateProjectInstance(); 721(f, xml, c) => new Project(f, null, null, c).CreateProjectInstance() 867: new Project(rootElement, globalProperties: null, toolsVersion: null, projectCollection, projectLoadSettings).CreateProjectInstance(); 971ProjectInstance instance = project.CreateProjectInstance();
Instance\ProjectMetadataInstance_Internal_Tests.cs (1)
57ProjectInstance projectInstance = project.CreateProjectInstance();
Instance\ProjectPropertyInstance_Internal_Tests.cs (1)
95ProjectInstance projectInstance = project.CreateProjectInstance();
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TargetTests.cs (1)
954return proj.CreateProjectInstance();
Microsoft.Build.Tasks.UnitTests (9)
AssignLinkMetadata_Tests.cs (1)
182ProjectInstance pi = p.CreateProjectInstance();
CallTarget_Tests.cs (1)
176ProjectInstance instance = project.CreateProjectInstance();
Exec_Tests.cs (2)
960var project = collection.LoadProject(testProject.ProjectFile).CreateProjectInstance(); 1017var project = collection.LoadProject(testProject.ProjectFile).CreateProjectInstance();
ResolveSDKReference_Tests.cs (5)
3812ProjectInstance project = pc.LoadProject(testProjectFile).CreateProjectInstance(); 3955ProjectInstance project = pc.LoadProject(testProjectFile).CreateProjectInstance(); 4064ProjectInstance project = pc.LoadProject(testProjectFile).CreateProjectInstance(); 4161ProjectInstance project = pc.LoadProject(testProjectFile).CreateProjectInstance(); 4330ProjectInstance project = pc.LoadProject(testProjectFile).CreateProjectInstance();
Microsoft.Build.UnitTests.Shared (1)
MockEngine.cs (1)
314ProjectInstance instance = _projectCollection.LoadProject(projectFileNames[i], finalGlobalProperties, null).CreateProjectInstance();
Microsoft.Build.Utilities.UnitTests (8)
MuxLogger_Tests.cs (8)
54ProjectInstance project = (projectFromString.Project).CreateProjectInstance(); 97ProjectInstance project = projectFromString.Project.CreateProjectInstance(); 107project = projectFromString1.Project.CreateProjectInstance(); 149ProjectInstance project = (projectFromString.Project).CreateProjectInstance(); 202ProjectInstance project1 = projectFromString1.Project.CreateProjectInstance(); 203ProjectInstance project2 = projectFromString2.Project.CreateProjectInstance(); 258ProjectInstance project = (projectFromString.Project).CreateProjectInstance(); 307ProjectInstance project = (projectFromString.Project).CreateProjectInstance();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
239var projectInstance = project.CreateProjectInstance();