134 references to CreateProjectInstance
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
1521
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);
1313
Assert.Empty(Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i")));
1487
Assert.Equal("v1", project.
CreateProjectInstance
().GetPropertyValue("p1"));
1512
Assert.Equal("v^1", project.
CreateProjectInstance
().GetPropertyValue("p1"));
1831
ProjectInstance instance = project.
CreateProjectInstance
();
1884
Assert.Equal("m1", Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i"))[0].GetMetadataValue("m"));
1912
Assert.Equal("m1$$", Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i"))[0].GetMetadataValue("m"));
2092
Assert.Equal("i1", Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i"))[0].EvaluatedInclude);
2119
Assert.Equal("i(1)", Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i"))[0].EvaluatedInclude);
Definition\Project_Tests.cs (3)
1765
ProjectInstance projectInstance = project.
CreateProjectInstance
();
3867
var projectInstance = project.
CreateProjectInstance
();
3879
var newProjectInstance = project.
CreateProjectInstance
();
Definition\ProjectItemDefinition_Tests.cs (1)
454
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
();
1032
ProjectInstance instance = immutable ? project.CreateProjectInstance(ProjectInstanceSettings.Immutable) : project.
CreateProjectInstance
();
1044
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectItemInstance_Tests.cs (3)
252
ProjectInstance projectInstance = project.
CreateProjectInstance
();
347
ProjectInstance projectInstance = project.
CreateProjectInstance
();
1194
ProjectInstance projectInstance = project.
CreateProjectInstance
();
Instance\ProjectMetadataInstance_Tests.cs (1)
35
ProjectInstance projectInstance = project.
CreateProjectInstance
();
Instance\ProjectOnErrorInstance_Tests.cs (1)
48
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
();
148
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectTaskInstance_Tests.cs (1)
78
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectTaskOutputItemInstance_Tests.cs (1)
51
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectTaskOutputPropertyInstance_Tests.cs (1)
51
ProjectInstance instance = project.
CreateProjectInstance
();
Microsoft.Build.Engine.UnitTests (77)
BackEnd\BuildManager_Tests.cs (7)
444
var data = new BuildRequestData(project.
CreateProjectInstance
(), Array.Empty<string>(), _projectCollection.HostServices);
505
var data = new BuildRequestData(project.
CreateProjectInstance
(), new[] { "test", "other" },
1812
BuildResult result2 = _buildManager.BuildRequest(new BuildRequestData(project.
CreateProjectInstance
(), new[] { "target2" }));
1847
BuildResult result2 = _buildManager.BuildRequest(new BuildRequestData(project.
CreateProjectInstance
(), new[] { "target1" }));
2266
ProjectInstance instance = project.
CreateProjectInstance
();
2317
ProjectInstance instance = project.
CreateProjectInstance
();
3579
return project.
CreateProjectInstance
();
BackEnd\BuildRequestConfiguration_Tests.cs (5)
188
ProjectInstance projectInstance = project.
CreateProjectInstance
();
286
ProjectInstance instance = project.
CreateProjectInstance
();
363
ProjectInstance instance = project.
CreateProjectInstance
();
465
ProjectInstance instance = project.
CreateProjectInstance
();
568
var projectInstance = project.
CreateProjectInstance
();
BackEnd\BuildRequestEngine_Tests.cs (1)
248
return project.
CreateProjectInstance
();
BackEnd\IntrinsicTask_Tests.cs (22)
1279
ProjectInstance p = project.
CreateProjectInstance
();
1290
p = project.
CreateProjectInstance
();
1312
ProjectInstance p = project.
CreateProjectInstance
();
1318
p = project.
CreateProjectInstance
();
2299
ProjectInstance p = project.
CreateProjectInstance
();
2307
p = project.
CreateProjectInstance
();
2333
ProjectInstance p = project.
CreateProjectInstance
();
2340
p = project.
CreateProjectInstance
();
2370
ProjectInstance p = project.
CreateProjectInstance
();
2378
p = project.
CreateProjectInstance
();
2407
ProjectInstance p = project.
CreateProjectInstance
();
2414
p = project.
CreateProjectInstance
();
2444
ProjectInstance p = project.
CreateProjectInstance
();
2452
p = project.
CreateProjectInstance
();
2482
ProjectInstance p = project.
CreateProjectInstance
();
2513
ProjectInstance p = project.
CreateProjectInstance
();
3200
ProjectInstance p = project.
CreateProjectInstance
();
3208
p = project.
CreateProjectInstance
();
3246
ProjectInstance p = project.
CreateProjectInstance
();
3258
p = project.
CreateProjectInstance
();
3954
ProjectInstance projectInstance = project.
CreateProjectInstance
();
3989
var projectInstance = project.
CreateProjectInstance
();
BackEnd\MSBuild_Tests.cs (8)
142
ProjectInstance pi = p.
CreateProjectInstance
();
555
ProjectInstance pi = p.
CreateProjectInstance
();
624
ProjectInstance pi = p.
CreateProjectInstance
();
931
ProjectInstance pi = p.
CreateProjectInstance
();
1051
ProjectInstance pi = p.
CreateProjectInstance
();
1120
ProjectInstance pi = p.
CreateProjectInstance
();
1187
ProjectInstance pi = p.
CreateProjectInstance
();
1802
ProjectInstance pi = p.
CreateProjectInstance
();
BackEnd\Scheduler_Tests.cs (1)
715
BuildRequestData data = new BuildRequestData(project.
CreateProjectInstance
(), new string[] { "test" });
BackEnd\TargetBuilder_Tests.cs (1)
1680
config.Project = project.
CreateProjectInstance
();
BackEnd\TargetEntry_Tests.cs (1)
1183
return project.
CreateProjectInstance
();
BackEnd\TargetUpToDateChecker_Tests.cs (1)
609
ProjectInstance p = project.
CreateProjectInstance
();
BackEnd\TaskBuilder_Tests.cs (2)
179
BuildRequestData data = new BuildRequestData(project.
CreateProjectInstance
(), new string[] { "test" }, collection.HostServices);
1245
config.Project = project.
CreateProjectInstance
();
BackEnd\TaskExecutionHost_Tests.cs (1)
1565
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)
596
ProjectInstance pi = p.
CreateProjectInstance
();
632
ProjectInstance pi = p.
CreateProjectInstance
();
674
ProjectInstance pi = p.
CreateProjectInstance
();
Definition\ProjectHelpers.cs (1)
28
ProjectInstance instance = project.
CreateProjectInstance
();
Definition\ToolsVersion_Tests.cs (2)
637
ProjectInstance pi = projectFromString.Project.
CreateProjectInstance
();
708
ProjectInstance pi = projectFromString.Project.
CreateProjectInstance
();
EscapingInProjects_Tests.cs (1)
651
ProjectInstance projectInstance = project.
CreateProjectInstance
();
Evaluation\Evaluator_Tests.cs (4)
1427
ProjectInstance instance = project.
CreateProjectInstance
();
2314
ProjectInstance instance = project.
CreateProjectInstance
();
2339
ProjectInstance instance = project.
CreateProjectInstance
();
2363
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)
71
ProjectInstance project = new Project(projectRootElementFromString.Project).
CreateProjectInstance
();
119
ProjectInstance project = new Project(projectRootElementFromString.Project).
CreateProjectInstance
();
145
ProjectInstance 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
();
971
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.CodeAnalysis.UnitTests (1)
TargetTests.cs (1)
954
return proj.
CreateProjectInstance
();
Microsoft.Build.Tasks.UnitTests (9)
AssignLinkMetadata_Tests.cs (1)
182
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)
54
ProjectInstance project = (projectFromString.Project).
CreateProjectInstance
();
97
ProjectInstance project = projectFromString.Project.
CreateProjectInstance
();
107
project = projectFromString1.Project.
CreateProjectInstance
();
149
ProjectInstance project = (projectFromString.Project).
CreateProjectInstance
();
202
ProjectInstance project1 = projectFromString1.Project.
CreateProjectInstance
();
203
ProjectInstance project2 = projectFromString2.Project.
CreateProjectInstance
();
258
ProjectInstance project = (projectFromString.Project).
CreateProjectInstance
();
307
ProjectInstance project = (projectFromString.Project).
CreateProjectInstance
();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
239
var projectInstance = project.
CreateProjectInstance
();