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