134 references to CreateProjectInstance
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
1558
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)
166
Assert.Equal("i1", Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i"))[0].EvaluatedInclude);
193
Assert.Equal("i(1)", Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i"))[0].EvaluatedInclude);
1311
Assert.Empty(Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i")));
1485
Assert.Equal("v1", project.
CreateProjectInstance
().GetPropertyValue("p1"));
1510
Assert.Equal("v^1", project.
CreateProjectInstance
().GetPropertyValue("p1"));
1829
ProjectInstance instance = project.
CreateProjectInstance
();
1882
Assert.Equal("m1", Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i"))[0].GetMetadataValue("m"));
1910
Assert.Equal("m1$$", Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i"))[0].GetMetadataValue("m"));
2090
Assert.Equal("i1", Helpers.MakeList(project.
CreateProjectInstance
().GetItems("i"))[0].EvaluatedInclude);
2117
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)
453
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectInstance_Tests.cs (8)
40
ProjectInstance i = p.
CreateProjectInstance
();
204
ProjectInstance instance = p.
CreateProjectInstance
();
397
ProjectInstance instance1 = new Project().
CreateProjectInstance
();
403
new Project().
CreateProjectInstance
();
427
var projBInstance = projBEval.
CreateProjectInstance
();
511
var projBInstance = projBEval.
CreateProjectInstance
();
1031
ProjectInstance instance = immutable ? project.CreateProjectInstance(ProjectInstanceSettings.Immutable) : project.
CreateProjectInstance
();
1043
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectItemInstance_Tests.cs (3)
246
ProjectInstance projectInstance = project.
CreateProjectInstance
();
341
ProjectInstance projectInstance = project.
CreateProjectInstance
();
1188
ProjectInstance projectInstance = project.
CreateProjectInstance
();
Instance\ProjectMetadataInstance_Tests.cs (1)
35
ProjectInstance projectInstance = project.
CreateProjectInstance
();
Instance\ProjectOnErrorInstance_Tests.cs (1)
46
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectPropertyInstance_Tests.cs (1)
104
ProjectInstance projectInstance = project.
CreateProjectInstance
();
Instance\ProjectTargetInstance_Tests.cs (4)
56
ProjectInstance instance = project.
CreateProjectInstance
();
76
ProjectInstance instance = project.
CreateProjectInstance
();
96
ProjectInstance instance = project.
CreateProjectInstance
();
147
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectTaskInstance_Tests.cs (1)
76
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectTaskOutputItemInstance_Tests.cs (1)
49
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectTaskOutputPropertyInstance_Tests.cs (1)
49
ProjectInstance instance = project.
CreateProjectInstance
();
Microsoft.Build.Engine.UnitTests (77)
BackEnd\BuildManager_Tests.cs (7)
443
var data = new BuildRequestData(project.
CreateProjectInstance
(), Array.Empty<string>(), _projectCollection.HostServices);
504
var data = new BuildRequestData(project.
CreateProjectInstance
(), new[] { "test", "other" },
1811
BuildResult result2 = _buildManager.BuildRequest(new BuildRequestData(project.
CreateProjectInstance
(), new[] { "target2" }));
1846
BuildResult result2 = _buildManager.BuildRequest(new BuildRequestData(project.
CreateProjectInstance
(), new[] { "target1" }));
2265
ProjectInstance instance = project.
CreateProjectInstance
();
2316
ProjectInstance instance = project.
CreateProjectInstance
();
3578
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)
247
return project.
CreateProjectInstance
();
BackEnd\IntrinsicTask_Tests.cs (22)
1278
ProjectInstance p = project.
CreateProjectInstance
();
1289
p = project.
CreateProjectInstance
();
1311
ProjectInstance p = project.
CreateProjectInstance
();
1317
p = project.
CreateProjectInstance
();
2298
ProjectInstance p = project.
CreateProjectInstance
();
2306
p = project.
CreateProjectInstance
();
2332
ProjectInstance p = project.
CreateProjectInstance
();
2339
p = project.
CreateProjectInstance
();
2369
ProjectInstance p = project.
CreateProjectInstance
();
2377
p = project.
CreateProjectInstance
();
2406
ProjectInstance p = project.
CreateProjectInstance
();
2413
p = project.
CreateProjectInstance
();
2443
ProjectInstance p = project.
CreateProjectInstance
();
2451
p = project.
CreateProjectInstance
();
2481
ProjectInstance p = project.
CreateProjectInstance
();
2512
ProjectInstance p = project.
CreateProjectInstance
();
3199
ProjectInstance p = project.
CreateProjectInstance
();
3207
p = project.
CreateProjectInstance
();
3245
ProjectInstance p = project.
CreateProjectInstance
();
3257
p = project.
CreateProjectInstance
();
3953
ProjectInstance projectInstance = project.
CreateProjectInstance
();
3988
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)
714
BuildRequestData data = new BuildRequestData(project.
CreateProjectInstance
(), new string[] { "test" });
BackEnd\TargetBuilder_Tests.cs (1)
1679
config.Project = project.
CreateProjectInstance
();
BackEnd\TargetEntry_Tests.cs (1)
1182
return project.
CreateProjectInstance
();
BackEnd\TargetUpToDateChecker_Tests.cs (1)
608
ProjectInstance p = project.
CreateProjectInstance
();
BackEnd\TaskBuilder_Tests.cs (2)
178
BuildRequestData data = new BuildRequestData(project.
CreateProjectInstance
(), new string[] { "test" }, collection.HostServices);
1244
config.Project = project.
CreateProjectInstance
();
BackEnd\TaskExecutionHost_Tests.cs (1)
1564
return project.
CreateProjectInstance
();
Collections\OMcollections_tests.cs (2)
311
ProjectInstance projectInstance = project.
CreateProjectInstance
();
323
ProjectInstance projectInstance = project.
CreateProjectInstance
();
ConsoleLogger_Tests.cs (3)
219
new BuildRequestData(p.
CreateProjectInstance
(), new[] { "Spawn" }));
260
new BuildRequestData(p.
CreateProjectInstance
(), new[] { "Spawn" }));
312
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)
26
ProjectInstance instance = project.
CreateProjectInstance
();
Definition\ToolsVersion_Tests.cs (2)
635
ProjectInstance pi = projectFromString.Project.
CreateProjectInstance
();
706
ProjectInstance pi = projectFromString.Project.
CreateProjectInstance
();
EscapingInProjects_Tests.cs (1)
651
ProjectInstance projectInstance = project.
CreateProjectInstance
();
Evaluation\Evaluator_Tests.cs (4)
1462
ProjectInstance instance = project.
CreateProjectInstance
();
2349
ProjectInstance instance = project.
CreateProjectInstance
();
2374
ProjectInstance instance = project.
CreateProjectInstance
();
2398
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)
485
ProjectInstance instance = project.
CreateProjectInstance
();
Instance\ProjectInstance_Internal_Tests.cs (6)
70
ProjectInstance project = new Project(projectRootElementFromString.Project).
CreateProjectInstance
();
118
ProjectInstance project = new Project(projectRootElementFromString.Project).
CreateProjectInstance
();
144
ProjectInstance project = projectFromString.Project.
CreateProjectInstance
();
720
(f, xml, c) => new Project(f, null, null, c).
CreateProjectInstance
()
866
: new Project(rootElement, globalProperties: null, toolsVersion: null, projectCollection, projectLoadSettings).
CreateProjectInstance
();
970
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)
181
ProjectInstance pi = p.
CreateProjectInstance
();
CallTarget_Tests.cs (1)
176
ProjectInstance instance = project.
CreateProjectInstance
();
Exec_Tests.cs (2)
970
var project = collection.LoadProject(testProject.ProjectFile).
CreateProjectInstance
();
1027
var project = collection.LoadProject(testProject.ProjectFile).
CreateProjectInstance
();
ResolveSDKReference_Tests.cs (5)
3811
ProjectInstance project = pc.LoadProject(testProjectFile).
CreateProjectInstance
();
3954
ProjectInstance project = pc.LoadProject(testProjectFile).
CreateProjectInstance
();
4063
ProjectInstance project = pc.LoadProject(testProjectFile).
CreateProjectInstance
();
4160
ProjectInstance project = pc.LoadProject(testProjectFile).
CreateProjectInstance
();
4329
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)
52
ProjectInstance project = (projectFromString.Project).
CreateProjectInstance
();
95
ProjectInstance project = projectFromString.Project.
CreateProjectInstance
();
105
project = projectFromString1.Project.
CreateProjectInstance
();
147
ProjectInstance project = (projectFromString.Project).
CreateProjectInstance
();
200
ProjectInstance project1 = projectFromString1.Project.
CreateProjectInstance
();
201
ProjectInstance project2 = projectFromString2.Project.
CreateProjectInstance
();
256
ProjectInstance project = (projectFromString.Project).
CreateProjectInstance
();
305
ProjectInstance project = (projectFromString.Project).
CreateProjectInstance
();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
239
var projectInstance = project.
CreateProjectInstance
();