81 references to AddUsingTask
Microsoft.Build.Engine.OM.UnitTests (27)
Construction\ConstructionEditing_Tests.cs (12)
2613var element = ProjectRootElement.Create().AddUsingTask("n", "af", null); 2624var element = ProjectRootElement.Create().AddUsingTask("n", "af", null); 2635var element = ProjectRootElement.Create().AddUsingTask("n", null, "an"); 2646var element = ProjectRootElement.Create().AddUsingTask("n", null, "an"); 2657var usingTask = ProjectRootElement.Create().AddUsingTask("n", null, "an"); 2670var usingTask = ProjectRootElement.Create().AddUsingTask("n", null, "an"); 2683var usingTask = ProjectRootElement.Create().AddUsingTask("n", null, "an"); 2696var usingTask = ProjectRootElement.Create().AddUsingTask("n", null, "an"); 2960var usingTask = ProjectRootElement.Create().AddUsingTask("n", null, "an"); 2973var usingTask = ProjectRootElement.Create().AddUsingTask("n", null, "an"); 2986var usingTask = ProjectRootElement.Create().AddUsingTask("n", null, "an"); 2999var usingTask = ProjectRootElement.Create().AddUsingTask("n", null, "an");
Construction\ProjectRootElement_Tests.cs (2)
1182pre.AddUsingTask("name", "assembly", null); 1184var inlineUt = pre.AddUsingTask("anotherName", "somefile", null);
Construction\ProjectUsingTaskElement_Tests.cs (3)
304ProjectUsingTaskElement usingTask = project.AddUsingTask("t", "af", null); 319ProjectUsingTaskElement usingTask = project.AddUsingTask("t", "af", null); 334ProjectUsingTaskElement usingTask = project.AddUsingTask("t", "af", null);
Definition\Project_Tests.cs (3)
2142xml.AddUsingTask("x", "@(x->'%(x)')", null); 2156xml.AddUsingTask("@(x->'%(x)')", "y", null); 2170xml.AddUsingTask("x", null, "@(x->'%(x)')");
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (7)
98xmlPair.Add2NewChildrenWithVerify<ProjectUsingTaskElement>("NewUsingTaskFile", (p, n) => p.AddUsingTask(n, "assemblyFile", null), (ut, n) => ut.TaskName == n, out var newUsinTaskFile1, out var newUsingTaskFile2); 99xmlPair.Add2NewChildrenWithVerify<ProjectUsingTaskElement>("NewUsingTaskName", (p, n) => p.AddUsingTask(n, null, "assemblyName"), (ut, n) => ut.TaskName == n, out var newUsinTaskName1, out var newUsingTaskName2); 488var usingTaskFile = xmlPair.AddNewChaildWithVerify<ProjectUsingTaskElement>(ObjectType.View, "NewUsingTask", (p, n) => p.AddUsingTask(n, "assemblyFile", null), (ut, n) => true); 512var usingTaskName = xmlPair.AddNewChaildWithVerify<ProjectUsingTaskElement>(ObjectType.View, "NewUsingTask", (p, n) => p.AddUsingTask(n, null, "assemblyName"), (ut, n) => true); 522var usingTask = xmlPair.AddNewChaildWithVerify<ProjectUsingTaskElement>(ObjectType.View, "NewUsingTask", (p, n) => p.AddUsingTask(n, "assemblyFile", null), (ut, n) => true); 537var usingTask = xmlPair.AddNewChaildWithVerify<ProjectUsingTaskElement>(ObjectType.View, "NewUsingTask", (p, n) => p.AddUsingTask(n, "assemblyFile", null), (ut, n) => true); 558var usingTask = xmlPair.AddNewChaildWithVerify<ProjectUsingTaskElement>(ObjectType.View, "NewUsingTask", (p, n) => p.AddUsingTask(n, "assemblyFile", null), (ut, n) => true);
Microsoft.Build.Engine.UnitTests (53)
BackEnd\TaskRegistry_Tests.cs (53)
107ProjectUsingTaskElement element = project.AddUsingTask("CustomTask", null, "CustomTask, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"); 141ProjectUsingTaskElement element = project.AddUsingTask("CustomTask", null, "CustomTask, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"); 144element = project.AddUsingTask("YetAnotherCustomTask", "bin\\Assemblies\\YetAnotherCustomTask.dll", null); 147element = project.AddUsingTask("AnotherCustomTask", null, "AnotherCustomTask, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"); 183ProjectUsingTaskElement element = project.AddUsingTask("CustomTask", null, "CustomTask, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"); 186element = project.AddUsingTask("YetAnotherCustomTask", null, "YetAnotherCustomTask, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null"); 189element = project.AddUsingTask("CustomTask", null, "CustomTask, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"); 248ProjectUsingTaskElement element = project.AddUsingTask("CustomTask", null, "CustomTasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"); 251element = project.AddUsingTask("YetAnotherCustomTask", "bin\\Assemblies\\YetAnotherCustomTask.dll", null); 254element = project.AddUsingTask("AnotherCustomTask", null, "CustomTasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"); 287ProjectUsingTaskElement element = project.AddUsingTask("CustomTask", "Some\\Relative\\Path\\CustomTasks.dll", null); 290element = project.AddUsingTask("YetAnotherCustomTask", null, "YetAnotherCustomTask, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null"); 293element = project.AddUsingTask("CustomTask", "Some\\Relative\\Path\\CustomTasks.dll", null); 315ProjectUsingTaskElement element = project.AddUsingTask("Task", "c:\\TaskLocation\\Tasks.dll", null); 320element = project.AddUsingTask("Task", "c:\\TaskLocation\\Tasks.dll", null); 325element = project.AddUsingTask("Task", "c:\\TaskLocation\\Tasks.dll", null); 330element = project.AddUsingTask("Task", "c:\\TaskLocation\\Tasks.dll", null); 356ProjectUsingTaskElement element = project.AddUsingTask("UnrelatedTask", _testTaskLocation, null); 392ProjectUsingTaskElement element = project.AddUsingTask("UnrelatedTask", _testTaskLocation, null); 428ProjectUsingTaskElement element = project.AddUsingTask(TestTaskName, _testTaskLocation, null); 466ProjectUsingTaskElement element = project.AddUsingTask(TestTaskName, _testTaskLocation, null); 504ProjectUsingTaskElement element = project.AddUsingTask(TestTaskName, _testTaskLocation, null); 571ProjectUsingTaskElement element = project.AddUsingTask(TestTaskName, _testTaskLocation, null); 612ProjectUsingTaskElement element = project.AddUsingTask(TestTaskName, _testTaskLocation, null); 617ProjectUsingTaskElement secondElement = project.AddUsingTask(TestTaskName, _testTaskLocation, null); 700ProjectUsingTaskElement element = project.AddUsingTask(TestTaskName, _testTaskLocation, null); 773ProjectUsingTaskElement element = project.AddUsingTask(TestTaskName, _testTaskLocation, null); 825ProjectUsingTaskElement element = project.AddUsingTask(TestTaskName, _testTaskLocation, null); 830element = project.AddUsingTask(TestTaskName, _testTaskLocation, null); 939ProjectUsingTaskElement element = project.AddUsingTask(TestTaskName, _testTaskLocation, null); 944element = project.AddUsingTask(TestTaskName, _testTaskLocation, null); 987ProjectUsingTaskElement element = project.AddUsingTask(TestTaskName, _testTaskLocation, null); 1049ProjectUsingTaskElement element = project.AddUsingTask(TestTaskName, _testTaskLocation, null); 1112ProjectUsingTaskElement element = project.AddUsingTask("$(Property1)@(ThirdItem)$(Property2)", "Some\\$(Property3)\\Path\\CustomTasks.dll", null); 1116element = project.AddUsingTask("YetAnotherCustomTask", null, "$(Property4)@(ThirdItem), Version=9.0.0.0, Culture=neutral, PublicKeyToken=null"); 1120element = project.AddUsingTask("Custom$(Property5)Task", "Some\\Relative\\Path\\CustomTasks.dll", null); 1165ProjectUsingTaskElement element = project.AddUsingTask("$(Property1)@(ThirdItem)$(Property2)", "Some\\$(Property3)\\Path\\CustomTasks.dll", null); 1169element = project.AddUsingTask("YetAnotherCustomTask", null, "$(Property4)@(ThirdItem), Version=9.0.0.0, Culture=neutral, PublicKeyToken=null"); 1173element = project.AddUsingTask("Custom$(Property5)Task", "Some\\Relative\\Path\\CustomTasks.dll", null); 1177element = project.AddUsingTask("MyTask", "TasksAssembly.dll", null); 1216ProjectUsingTaskElement element = project.AddUsingTask("Hello", "File", null); 1240ProjectUsingTaskElement element = project.AddUsingTask("Task1", AssemblyUtilities.GetAssemblyLocation(typeof(TaskRegistry_Tests.NullTaskTypeTaskFactory).GetTypeInfo().Assembly), null); 1265ProjectUsingTaskElement element = project.AddUsingTask("Name", "File", null); 1297ProjectUsingTaskElement element = project.AddUsingTask("Name", "File", null); 1667ProjectUsingTaskElement element = project.AddUsingTask("Name", "File", null); 1730ProjectUsingTaskElement element = project.AddUsingTask("Name", "File", null); 1754ProjectUsingTaskElement element = project.AddUsingTask("Name", "File", null); 1909ProjectUsingTaskElement simpleTask = project.AddUsingTask("t1", null, "a1"); 1921ProjectUsingTaskElement taskbyFile1 = project.AddUsingTask("t1", "f1", null); 1938ProjectUsingTaskElement taskbyName = project.AddUsingTask("t1", null, "n2"); 1956ProjectUsingTaskElement taskByFile2 = project.AddUsingTask("t2", "n3", null); 2139ProjectUsingTaskElement element = project.AddUsingTask("Name", "File", null); 2157ProjectUsingTaskElement element = project.AddUsingTask("Name", "File", null);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TargetTests.cs (1)
958var task = proj.Xml.AddUsingTask(taskName, string.Empty, Assembly.GetExecutingAssembly().FullName);