95 references to AddTarget
Microsoft.Build.Engine.OM.UnitTests (85)
Construction\ConstructionEditing_Tests.cs (55)
32
ProjectTargetElement target = project.
AddTarget
("t");
138
ProjectTargetElement target2 = project2.
AddTarget
("t2");
153
ProjectTargetElement target2 = project2.
AddTarget
("t2");
249
ProjectTargetElement target = project.
AddTarget
("t");
263
ProjectTargetElement target = project.
AddTarget
("t");
277
ProjectTargetElement target1 = project.
AddTarget
("t");
278
ProjectTargetElement target2 = project.
AddTarget
("t2");
292
ProjectTargetElement target1 = project.
AddTarget
("t");
293
ProjectTargetElement target2 = project.
AddTarget
("t2");
610
ProjectTargetElement target = project.
AddTarget
("t");
1174
ProjectTargetElement target = project.
AddTarget
("t");
1334
ProjectTargetElement target1 = project.
AddTarget
("t1");
1335
ProjectTargetElement target2 = project.
AddTarget
("t2");
1358
ProjectTargetElement target1 = project.
AddTarget
("t1");
1359
ProjectTargetElement target2 = project.
AddTarget
("t2");
1382
ProjectTargetElement target1 = project.
AddTarget
("t1");
1383
ProjectTargetElement target2 = project.
AddTarget
("t2");
1399
ProjectTargetElement target1 = project.
AddTarget
("t1");
1413
ProjectTargetElement target1 = project.
AddTarget
("t1");
1414
ProjectTargetElement target2 = project.
AddTarget
("t2");
1439
ProjectTargetElement target1 = project.
AddTarget
("t1");
1440
project.
AddTarget
("t2");
1462
ProjectTargetElement target1 = project.
AddTarget
("t1");
1463
project.
AddTarget
("t2");
1484
ProjectTargetElement target1 = project.
AddTarget
("t1");
1504
ProjectTargetElement target1 = project.
AddTarget
("t1");
1526
project.
AddTarget
("t1");
1527
project.
AddTarget
("t2");
1552
ProjectTargetElement target1 = project.
AddTarget
("t1");
1553
ProjectTargetElement target2 = project.
AddTarget
("t2");
1663
project.
AddTarget
("t");
2709
var element = ProjectRootElement.Create().
AddTarget
("t");
2720
var element = ProjectRootElement.Create().
AddTarget
("t");
2731
var element = ProjectRootElement.Create().
AddTarget
("t");
2742
var element = ProjectRootElement.Create().
AddTarget
("t");
2753
var element = ProjectRootElement.Create().
AddTarget
("t").AddTask("tt");
2764
var element = ProjectRootElement.Create().
AddTarget
("t").AddTask("tt");
2775
var element = ProjectRootElement.Create().
AddTarget
("t").AddTask("tt").AddOutputItem("tp", "i");
2786
var element = ProjectRootElement.Create().
AddTarget
("t").AddTask("tt").AddOutputItem("tp", "i");
2797
var element = ProjectRootElement.Create().
AddTarget
("t").AddTask("tt").AddOutputProperty("tp", "p");
2808
var element = ProjectRootElement.Create().
AddTarget
("t").AddTask("tt").AddOutputProperty("tp", "p");
2819
var element = ProjectRootElement.Create().
AddTarget
("t").AddItemGroup().AddItem("i", "i1");
2830
var element = ProjectRootElement.Create().
AddTarget
("t").AddItemGroup().AddItem("i", "i1");
2841
var element = ProjectRootElement.Create().
AddTarget
("t").AddItemGroup().AddItem("i", "i1").AddMetadata("m", "m1");
2852
var element = ProjectRootElement.Create().
AddTarget
("t").AddPropertyGroup().AddProperty("p", "v1");
3012
var element = ProjectRootElement.Create().
AddTarget
("t").AddTask("tt");
3023
var element = ProjectRootElement.Create().
AddTarget
("t").AddTask("tt");
3034
var element = ProjectRootElement.Create().
AddTarget
("t").AddTask("tt").AddOutputItem("tp", "i");
3045
var element = ProjectRootElement.Create().
AddTarget
("t").AddTask("tt").AddOutputItem("tp", "i");
3056
var element = ProjectRootElement.Create().
AddTarget
("t").AddTask("tt").AddOutputProperty("tp", "p");
3067
var element = ProjectRootElement.Create().
AddTarget
("t").AddTask("tt").AddOutputProperty("tp", "p");
3078
var element = ProjectRootElement.Create().
AddTarget
("t").AddItemGroup().AddItem("i", "i1");
3089
var element = ProjectRootElement.Create().
AddTarget
("t").AddItemGroup().AddItem("i", "i1");
3100
var element = ProjectRootElement.Create().
AddTarget
("t").AddItemGroup().AddItem("i", "i1").AddMetadata("m", "m1");
3184
var element = ProjectRootElement.Create().
AddTarget
("t").AddPropertyGroup().AddProperty("p", "v1");
Construction\ProjectItemElement_Tests.cs (1)
1007
ProjectItemElement item = project.
AddTarget
("t").AddItemGroup().AddItem("i", "i1");
Construction\ProjectOnErrorElement_Tests.cs (2)
259
ProjectTargetElement target = project.
AddTarget
("t");
277
ProjectTargetElement target = project.
AddTarget
("t");
Construction\ProjectRootElement_Tests.cs (1)
1171
var target = pre.
AddTarget
("SomeTarget");
Construction\ProjectTargetElement_Tests.cs (7)
220
ProjectTargetElement target = project.
AddTarget
("t");
236
ProjectTargetElement target = project.
AddTarget
("t");
252
ProjectTargetElement target = project.
AddTarget
("t");
268
ProjectTargetElement target = project.
AddTarget
("t");
284
ProjectTargetElement target = project.
AddTarget
("t");
300
ProjectTargetElement target = project.
AddTarget
("t");
317
ProjectTargetElement target = project.
AddTarget
("t");
Construction\ProjectTaskElement_Tests.cs (2)
274
ProjectTaskElement task = project.
AddTarget
("t").AddTask("tt");
289
ProjectTaskElement task = project.
AddTarget
("t").AddTask("tt");
Definition\Project_Tests.cs (3)
1086
xml.
AddTarget
("t");
2055
project.Xml.
AddTarget
("t");
4240
projectXml.
AddTarget
("t");
Instance\ProjectInstance_Tests.cs (1)
382
xml.
AddTarget
("t").AddTask("Message").SetParameter("Text", "[OK]");
Instance\ProjectTargetInstance_Tests.cs (7)
53
projectXml.
AddTarget
("t").Inputs = "i1";
54
projectXml.
AddTarget
("t").Inputs = "i2";
73
projectXml.
AddTarget
("t%3b").Inputs = "i1";
74
projectXml.
AddTarget
("t;").Inputs = "i2";
93
projectXml.
AddTarget
("t;").Inputs = "i1";
94
projectXml.
AddTarget
("t%3b").Inputs = "i2";
119
projectXml.
AddTarget
("t");
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (6)
97
xmlPair.Add2NewChildrenWithVerify<ProjectTargetElement>("NewTarget", (p, n) => p.
AddTarget
(n), (t, n) => string.Equals(t.Name, n), out var newTarget1, out var newTarget2);
148
var newTarget1 = xmlPair.AddNewChaildWithVerify<ProjectTargetElement>(ObjectType.View, NewTargetName, (p, n) => p.
AddTarget
(n), (t, n) => string.Equals(t.Name, n));
223
var newTarget = xmlPair.AddNewChaildWithVerify<ProjectTargetElement>(ObjectType.View, "TargetToTestTask", (p, n) => p.
AddTarget
(n), (t, n) => string.Equals(t.Name, n));
319
var newTarget = xmlPair.AddNewChaildWithVerify<ProjectTargetElement>(ObjectType.View, "TargetToTestTask", (p, n) => p.
AddTarget
(n), (t, n) => string.Equals(t.Name, n));
642
var target = xmlPair.AddNewChaildWithVerify<ProjectTargetElement>(ObjectType.View, "NewTarget", (p, n) => p.
AddTarget
(n), (t, n) => string.Equals(t.Name, n));
777
var newTarget = xmlPair.AddNewChaildWithVerify<ProjectTargetElement>(ObjectType.View, "TargetToTestTask", (p, n) => p.
AddTarget
(n), (t, n) => string.Equals(t.Name, n));
Microsoft.Build.Engine.UnitTests (9)
BackEnd\BuildManager_Tests.cs (2)
3643
ProjectTargetElement buildTarget = rootProject.
AddTarget
("Build");
3649
rootProject.
AddTarget
("ChildBuild");
ConsoleLogger_Tests.cs (1)
148
ProjectTargetElement target = project.Xml.
AddTarget
("T");
Construction\SolutionProjectGenerator_Tests.cs (1)
303
ProjectTargetElement target = projectXml.
AddTarget
("Build");
Evaluation\Evaluator_Tests.cs (5)
1339
ProjectTargetElement target0 = main.
AddTarget
("t0");
1344
ProjectTargetElement target1 = import1.
AddTarget
("t1");
1349
ProjectTargetElement target2 = import2.
AddTarget
("t2");
1354
ProjectTargetElement target3 = import3.
AddTarget
("t3");
5175
ProjectTargetElement target = import.
AddTarget
(targetName);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TargetTests.cs (1)
929
proj.Xml.
AddTarget
("PrepareForBuild");