132 references to CreateProjectInstance
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
1510
ProjectInstance 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)
168
Assert.Equal("i1", Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i"))[0].EvaluatedInclude);
195
Assert.Equal("i(1)", Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i"))[0].EvaluatedInclude);
1311
Assert.Empty(Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i")));
1483
Assert.Equal("v1", project.
CreateProjectInstance
().GetPropertyValue("p1"));
1508
Assert.Equal("v^1", project.
CreateProjectInstance
().GetPropertyValue("p1"));
1827
ProjectInstance instance = project.
CreateProjectInstance
();
1880
Assert.Equal("m1", Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i"))[0].GetMetadataValue("m"));
1908
Assert.Equal("m1$$", Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i"))[0].GetMetadataValue("m"));
2087
Assert.Equal("i1", Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i"))[0].EvaluatedInclude);
2114
Assert.Equal("i(1)", Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i"))[0].EvaluatedInclude);
Definition\Project_Tests.cs (3)
1749
ProjectInstance projectInstance = project.
CreateProjectInstance
();
3834
var projectInstance = project.
CreateProjectInstance
();
3846
var newProjectInstance = project.
CreateProjectInstance
();
Definition\ProjectItemDefinition_Tests.cs (1)
445
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectInstance_Tests.cs (8)
41
ProjectInstance i = p.
CreateProjectInstance
();
205
ProjectInstance instance = p.
CreateProjectInstance
();
398
ProjectInstance instance1 = new Project().
CreateProjectInstance
();
404
new Project().
CreateProjectInstance
();
428
var projBInstance = projBEval.
CreateProjectInstance
();
512
var projBInstance = projBEval.
CreateProjectInstance
();
1031
ProjectInstance instance = immutable ? project.CreateProjectInstance(ProjectInstanceSettings.Immutable) : project.
CreateProjectInstance
();
1043
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectItemInstance_Tests.cs (3)
252
ProjectInstance projectInstance = project.
CreateProjectInstance
();
347
ProjectInstance projectInstance = project.
CreateProjectInstance
();
1193
ProjectInstance projectInstance = project.
CreateProjectInstance
();
Instance\ProjectMetadataInstance_Tests.cs (1)
35
ProjectInstance projectInstance = project.
CreateProjectInstance
();
Instance\ProjectOnErrorInstance_Tests.cs (1)
47
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectPropertyInstance_Tests.cs (1)
104
ProjectInstance projectInstance = project.
CreateProjectInstance
();
Instance\ProjectTargetInstance_Tests.cs (4)
57
ProjectInstance instance = project.
CreateProjectInstance
();
77
ProjectInstance instance = project.
CreateProjectInstance
();
97
ProjectInstance instance = project.
CreateProjectInstance
();
147
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectTaskInstance_Tests.cs (1)
77
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectTaskOutputItemInstance_Tests.cs (1)
50
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectTaskOutputPropertyInstance_Tests.cs (1)
50
ProjectInstance instance = project.
CreateProjectInstance
();
Microsoft.Build.Engine.UnitTests (77)
BackEnd\BuildManager_Tests.cs (7)
445
var data = new BuildRequestData(project.
CreateProjectInstance
(), Array.Empty<string>(), _projectCollection.HostServices);
506
var data = new BuildRequestData(project.
CreateProjectInstance
(), new[] { "test", "other" },
1747
BuildResult result2 = _buildManager.BuildRequest(new BuildRequestData(project.
CreateProjectInstance
(), new[] { "target2" }));
1782
BuildResult result2 = _buildManager.BuildRequest(new BuildRequestData(project.
CreateProjectInstance
(), new[] { "target1" }));
2201
ProjectInstance instance = project.
CreateProjectInstance
();
2252
ProjectInstance instance = project.
CreateProjectInstance
();
3512
return project.
CreateProjectInstance
();
BackEnd\BuildRequestConfiguration_Tests.cs (5)
187
ProjectInstance projectInstance = project.
CreateProjectInstance
();
283
ProjectInstance instance = project.
CreateProjectInstance
();
359
ProjectInstance instance = project.
CreateProjectInstance
();
459
ProjectInstance instance = project.
CreateProjectInstance
();
561
var projectInstance = project.
CreateProjectInstance
();
BackEnd\BuildRequestEngine_Tests.cs (1)
247
return project.
CreateProjectInstance
();
BackEnd\IntrinsicTask_Tests.cs (22)
1239
ProjectInstance p = project.
CreateProjectInstance
();
1250
p = project.
CreateProjectInstance
();
1271
ProjectInstance p = project.
CreateProjectInstance
();
1277
p = project.
CreateProjectInstance
();
2247
ProjectInstance p = project.
CreateProjectInstance
();
2255
p = project.
CreateProjectInstance
();
2280
ProjectInstance p = project.
CreateProjectInstance
();
2287
p = project.
CreateProjectInstance
();
2316
ProjectInstance p = project.
CreateProjectInstance
();
2324
p = project.
CreateProjectInstance
();
2352
ProjectInstance p = project.
CreateProjectInstance
();
2359
p = project.
CreateProjectInstance
();
2388
ProjectInstance p = project.
CreateProjectInstance
();
2396
p = project.
CreateProjectInstance
();
2425
ProjectInstance p = project.
CreateProjectInstance
();
2455
ProjectInstance p = project.
CreateProjectInstance
();
3131
ProjectInstance p = project.
CreateProjectInstance
();
3139
p = project.
CreateProjectInstance
();
3176
ProjectInstance p = project.
CreateProjectInstance
();
3188
p = project.
CreateProjectInstance
();
3864
ProjectInstance projectInstance = project.
CreateProjectInstance
();
3899
var projectInstance = project.
CreateProjectInstance
();
BackEnd\MSBuild_Tests.cs (8)
145
ProjectInstance pi = p.
CreateProjectInstance
();
558
ProjectInstance pi = p.
CreateProjectInstance
();
627
ProjectInstance pi = p.
CreateProjectInstance
();
934
ProjectInstance pi = p.
CreateProjectInstance
();
1054
ProjectInstance pi = p.
CreateProjectInstance
();
1123
ProjectInstance pi = p.
CreateProjectInstance
();
1190
ProjectInstance pi = p.
CreateProjectInstance
();
1805
ProjectInstance pi = p.
CreateProjectInstance
();
BackEnd\Scheduler_Tests.cs (1)
714
BuildRequestData data = new BuildRequestData(project.
CreateProjectInstance
(), new string[] { "test" });
BackEnd\TargetBuilder_Tests.cs (1)
1647
config.Project = project.
CreateProjectInstance
();
BackEnd\TargetEntry_Tests.cs (1)
1180
return project.
CreateProjectInstance
();
BackEnd\TargetUpToDateChecker_Tests.cs (1)
569
ProjectInstance p = project.
CreateProjectInstance
();
BackEnd\TaskBuilder_Tests.cs (2)
178
BuildRequestData data = new BuildRequestData(project.
CreateProjectInstance
(), new string[] { "test" }, collection.HostServices);
1233
config.Project = project.
CreateProjectInstance
();
BackEnd\TaskExecutionHost_Tests.cs (1)
1563
return project.
CreateProjectInstance
();
Collections\OMcollections_tests.cs (2)
312
ProjectInstance projectInstance = project.
CreateProjectInstance
();
324
ProjectInstance projectInstance = project.
CreateProjectInstance
();
ConsoleLogger_Tests.cs (3)
221
new BuildRequestData(p.
CreateProjectInstance
(), new[] { "Spawn" }));
262
new BuildRequestData(p.
CreateProjectInstance
(), new[] { "Spawn" }));
314
new BuildRequestData(p.
CreateProjectInstance
(), new[] { "Spawn" }));
Definition\ItemDefinitionGroup_Tests.cs (3)
579
ProjectInstance pi = p.
CreateProjectInstance
();
614
ProjectInstance pi = p.
CreateProjectInstance
();
655
ProjectInstance pi = p.
CreateProjectInstance
();
Definition\ProjectHelpers.cs (1)
30
ProjectInstance instance = project.
CreateProjectInstance
();
Definition\ToolsVersion_Tests.cs (2)
605
ProjectInstance pi = project.
CreateProjectInstance
();
674
ProjectInstance pi = project.
CreateProjectInstance
();
EscapingInProjects_Tests.cs (1)
650
ProjectInstance projectInstance = project.
CreateProjectInstance
();
Evaluation\Evaluator_Tests.cs (4)
1399
ProjectInstance instance = project.
CreateProjectInstance
();
2265
ProjectInstance instance = project.
CreateProjectInstance
();
2289
ProjectInstance instance = project.
CreateProjectInstance
();
2312
ProjectInstance instance = project.
CreateProjectInstance
();
Graph\ProjectGraph_Tests.cs (2)
134
var projectInstance = new Project().
CreateProjectInstance
();
181
var projectInstance = new Project().
CreateProjectInstance
();
Instance\HostServices_Tests.cs (1)
486
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectInstance_Internal_Tests.cs (6)
70
ProjectInstance project = new Project(ProjectRootElement.Create(XmlReader.Create(new StringReader(projectFileContent)))).
CreateProjectInstance
();
117
ProjectInstance project = new Project(ProjectRootElement.Create(XmlReader.Create(new StringReader(projectFileContent)))).
CreateProjectInstance
();
142
ProjectInstance 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
();
959
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectMetadataInstance_Internal_Tests.cs (1)
57
ProjectInstance projectInstance = project.
CreateProjectInstance
();
Instance\ProjectPropertyInstance_Internal_Tests.cs (1)
95
ProjectInstance projectInstance = project.
CreateProjectInstance
();
Microsoft.Build.Tasks.UnitTests (9)
AssignLinkMetadata_Tests.cs (1)
181
ProjectInstance pi = p.
CreateProjectInstance
();
CallTarget_Tests.cs (1)
176
ProjectInstance instance = project.
CreateProjectInstance
();
Exec_Tests.cs (2)
960
var project = collection.LoadProject(testProject.ProjectFile).
CreateProjectInstance
();
1017
var project = collection.LoadProject(testProject.ProjectFile).
CreateProjectInstance
();
ResolveSDKReference_Tests.cs (5)
3812
ProjectInstance project = pc.LoadProject(testProjectFile).
CreateProjectInstance
();
3955
ProjectInstance project = pc.LoadProject(testProjectFile).
CreateProjectInstance
();
4064
ProjectInstance project = pc.LoadProject(testProjectFile).
CreateProjectInstance
();
4161
ProjectInstance project = pc.LoadProject(testProjectFile).
CreateProjectInstance
();
4330
ProjectInstance project = pc.LoadProject(testProjectFile).
CreateProjectInstance
();
Microsoft.Build.UnitTests.Shared (1)
MockEngine.cs (1)
314
ProjectInstance instance = _projectCollection.LoadProject(projectFileNames[i], finalGlobalProperties, null).
CreateProjectInstance
();
Microsoft.Build.Utilities.UnitTests (8)
MuxLogger_Tests.cs (8)
53
ProjectInstance project = (new Project(XmlReader.Create(new StringReader(projectBody)))).
CreateProjectInstance
();
95
ProjectInstance project = (new Project(XmlReader.Create(new StringReader(projectBody)), null, ObjectModelHelpers.MSBuildDefaultToolsVersion, projectCollection)).
CreateProjectInstance
();
104
project = (new Project(XmlReader.Create(new StringReader(projectBody)), null, ObjectModelHelpers.MSBuildDefaultToolsVersion, projectCollection)).
CreateProjectInstance
();
142
ProjectInstance project = (new Project(XmlReader.Create(new StringReader(projectBody)))).
CreateProjectInstance
();
193
ProjectInstance project1 = (new Project(XmlReader.Create(new StringReader(projectBody1)))).
CreateProjectInstance
();
194
ProjectInstance project2 = (new Project(XmlReader.Create(new StringReader(projectBody2)))).
CreateProjectInstance
();
248
ProjectInstance project = (new Project(XmlReader.Create(new StringReader(projectBody)))).
CreateProjectInstance
();
296
ProjectInstance project = (new Project(XmlReader.Create(new StringReader(projectBody)))).
CreateProjectInstance
();