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