132 references to CreateProjectInstance
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
1510ProjectInstance 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); 1311Assert.Empty(Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))); 1483Assert.Equal("v1", project.CreateProjectInstance().GetPropertyValue("p1")); 1508Assert.Equal("v^1", project.CreateProjectInstance().GetPropertyValue("p1")); 1827ProjectInstance instance = project.CreateProjectInstance(); 1880Assert.Equal("m1", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].GetMetadataValue("m")); 1908Assert.Equal("m1$$", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].GetMetadataValue("m")); 2087Assert.Equal("i1", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].EvaluatedInclude); 2114Assert.Equal("i(1)", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].EvaluatedInclude);
Definition\Project_Tests.cs (3)
1749ProjectInstance projectInstance = project.CreateProjectInstance(); 3834var projectInstance = project.CreateProjectInstance(); 3846var newProjectInstance = project.CreateProjectInstance();
Definition\ProjectItemDefinition_Tests.cs (1)
445ProjectInstance 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(); 1031ProjectInstance instance = immutable ? project.CreateProjectInstance(ProjectInstanceSettings.Immutable) : project.CreateProjectInstance(); 1043ProjectInstance instance = project.CreateProjectInstance();
Instance\ProjectItemInstance_Tests.cs (3)
252ProjectInstance projectInstance = project.CreateProjectInstance(); 347ProjectInstance projectInstance = project.CreateProjectInstance(); 1193ProjectInstance projectInstance = project.CreateProjectInstance();
Instance\ProjectMetadataInstance_Tests.cs (1)
35ProjectInstance projectInstance = project.CreateProjectInstance();
Instance\ProjectOnErrorInstance_Tests.cs (1)
47ProjectInstance 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(); 147ProjectInstance instance = project.CreateProjectInstance();
Instance\ProjectTaskInstance_Tests.cs (1)
77ProjectInstance instance = project.CreateProjectInstance();
Instance\ProjectTaskOutputItemInstance_Tests.cs (1)
50ProjectInstance instance = project.CreateProjectInstance();
Instance\ProjectTaskOutputPropertyInstance_Tests.cs (1)
50ProjectInstance instance = project.CreateProjectInstance();
Microsoft.Build.Engine.UnitTests (77)
BackEnd\BuildManager_Tests.cs (7)
445var data = new BuildRequestData(project.CreateProjectInstance(), Array.Empty<string>(), _projectCollection.HostServices); 506var data = new BuildRequestData(project.CreateProjectInstance(), new[] { "test", "other" }, 1747BuildResult result2 = _buildManager.BuildRequest(new BuildRequestData(project.CreateProjectInstance(), new[] { "target2" })); 1782BuildResult result2 = _buildManager.BuildRequest(new BuildRequestData(project.CreateProjectInstance(), new[] { "target1" })); 2201ProjectInstance instance = project.CreateProjectInstance(); 2252ProjectInstance instance = project.CreateProjectInstance(); 3512return project.CreateProjectInstance();
BackEnd\BuildRequestConfiguration_Tests.cs (5)
187ProjectInstance projectInstance = project.CreateProjectInstance(); 283ProjectInstance instance = project.CreateProjectInstance(); 359ProjectInstance instance = project.CreateProjectInstance(); 459ProjectInstance instance = project.CreateProjectInstance(); 561var projectInstance = project.CreateProjectInstance();
BackEnd\BuildRequestEngine_Tests.cs (1)
247return project.CreateProjectInstance();
BackEnd\IntrinsicTask_Tests.cs (22)
1239ProjectInstance p = project.CreateProjectInstance(); 1250p = project.CreateProjectInstance(); 1271ProjectInstance p = project.CreateProjectInstance(); 1277p = project.CreateProjectInstance(); 2247ProjectInstance p = project.CreateProjectInstance(); 2255p = project.CreateProjectInstance(); 2280ProjectInstance p = project.CreateProjectInstance(); 2287p = project.CreateProjectInstance(); 2316ProjectInstance p = project.CreateProjectInstance(); 2324p = project.CreateProjectInstance(); 2352ProjectInstance p = project.CreateProjectInstance(); 2359p = project.CreateProjectInstance(); 2388ProjectInstance p = project.CreateProjectInstance(); 2396p = project.CreateProjectInstance(); 2425ProjectInstance p = project.CreateProjectInstance(); 2455ProjectInstance p = project.CreateProjectInstance(); 3131ProjectInstance p = project.CreateProjectInstance(); 3139p = project.CreateProjectInstance(); 3176ProjectInstance p = project.CreateProjectInstance(); 3188p = project.CreateProjectInstance(); 3864ProjectInstance projectInstance = project.CreateProjectInstance(); 3899var projectInstance = project.CreateProjectInstance();
BackEnd\MSBuild_Tests.cs (8)
145ProjectInstance pi = p.CreateProjectInstance(); 558ProjectInstance pi = p.CreateProjectInstance(); 627ProjectInstance pi = p.CreateProjectInstance(); 934ProjectInstance pi = p.CreateProjectInstance(); 1054ProjectInstance pi = p.CreateProjectInstance(); 1123ProjectInstance pi = p.CreateProjectInstance(); 1190ProjectInstance pi = p.CreateProjectInstance(); 1805ProjectInstance pi = p.CreateProjectInstance();
BackEnd\Scheduler_Tests.cs (1)
714BuildRequestData data = new BuildRequestData(project.CreateProjectInstance(), new string[] { "test" });
BackEnd\TargetBuilder_Tests.cs (1)
1647config.Project = project.CreateProjectInstance();
BackEnd\TargetEntry_Tests.cs (1)
1180return project.CreateProjectInstance();
BackEnd\TargetUpToDateChecker_Tests.cs (1)
569ProjectInstance p = project.CreateProjectInstance();
BackEnd\TaskBuilder_Tests.cs (2)
178BuildRequestData data = new BuildRequestData(project.CreateProjectInstance(), new string[] { "test" }, collection.HostServices); 1233config.Project = project.CreateProjectInstance();
BackEnd\TaskExecutionHost_Tests.cs (1)
1563return 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)
579ProjectInstance pi = p.CreateProjectInstance(); 614ProjectInstance pi = p.CreateProjectInstance(); 655ProjectInstance pi = p.CreateProjectInstance();
Definition\ProjectHelpers.cs (1)
30ProjectInstance instance = project.CreateProjectInstance();
Definition\ToolsVersion_Tests.cs (2)
605ProjectInstance pi = project.CreateProjectInstance(); 674ProjectInstance pi = project.CreateProjectInstance();
EscapingInProjects_Tests.cs (1)
650ProjectInstance projectInstance = project.CreateProjectInstance();
Evaluation\Evaluator_Tests.cs (4)
1399ProjectInstance instance = project.CreateProjectInstance(); 2265ProjectInstance instance = project.CreateProjectInstance(); 2289ProjectInstance instance = project.CreateProjectInstance(); 2312ProjectInstance 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)
70ProjectInstance project = new Project(ProjectRootElement.Create(XmlReader.Create(new StringReader(projectFileContent)))).CreateProjectInstance(); 117ProjectInstance project = new Project(ProjectRootElement.Create(XmlReader.Create(new StringReader(projectFileContent)))).CreateProjectInstance(); 142ProjectInstance project = new Project(ProjectRootElement.Create(XmlReader.Create(new StringReader(projectFileContent)))).CreateProjectInstance(); 711(f, xml, c) => new Project(f, null, null, c).CreateProjectInstance() 854: new Project(rootElement, globalProperties: null, toolsVersion: null, projectCollection, projectLoadSettings).CreateProjectInstance(); 959ProjectInstance 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.UnitTests (9)
AssignLinkMetadata_Tests.cs (1)
181ProjectInstance 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)
53ProjectInstance project = (new Project(XmlReader.Create(new StringReader(projectBody)))).CreateProjectInstance(); 95ProjectInstance project = (new Project(XmlReader.Create(new StringReader(projectBody)), null, ObjectModelHelpers.MSBuildDefaultToolsVersion, projectCollection)).CreateProjectInstance(); 104project = (new Project(XmlReader.Create(new StringReader(projectBody)), null, ObjectModelHelpers.MSBuildDefaultToolsVersion, projectCollection)).CreateProjectInstance(); 142ProjectInstance project = (new Project(XmlReader.Create(new StringReader(projectBody)))).CreateProjectInstance(); 193ProjectInstance project1 = (new Project(XmlReader.Create(new StringReader(projectBody1)))).CreateProjectInstance(); 194ProjectInstance project2 = (new Project(XmlReader.Create(new StringReader(projectBody2)))).CreateProjectInstance(); 248ProjectInstance project = (new Project(XmlReader.Create(new StringReader(projectBody)))).CreateProjectInstance(); 296ProjectInstance project = (new Project(XmlReader.Create(new StringReader(projectBody)))).CreateProjectInstance();