31 references to AddTask
Microsoft.Build (2)
Construction\Solution\SolutionProjectGenerator.cs (1)
333
ProjectTaskElement task = target.
AddTask
(elementType);
Instance\ProjectTargetInstance.cs (1)
481
ProjectTaskElement taskElement = target.
AddTask
(taskInstance.Name);
Microsoft.Build.Engine.OM.UnitTests (20)
Construction\ConstructionEditing_Tests.cs (13)
610
target.
AddTask
("tt");
2752
var element = ProjectRootElement.Create().AddTarget("t").
AddTask
("tt");
2763
var element = ProjectRootElement.Create().AddTarget("t").
AddTask
("tt");
2774
var element = ProjectRootElement.Create().AddTarget("t").
AddTask
("tt").AddOutputItem("tp", "i");
2785
var element = ProjectRootElement.Create().AddTarget("t").
AddTask
("tt").AddOutputItem("tp", "i");
2796
var element = ProjectRootElement.Create().AddTarget("t").
AddTask
("tt").AddOutputProperty("tp", "p");
2807
var element = ProjectRootElement.Create().AddTarget("t").
AddTask
("tt").AddOutputProperty("tp", "p");
3011
var element = ProjectRootElement.Create().AddTarget("t").
AddTask
("tt");
3022
var element = ProjectRootElement.Create().AddTarget("t").
AddTask
("tt");
3033
var element = ProjectRootElement.Create().AddTarget("t").
AddTask
("tt").AddOutputItem("tp", "i");
3044
var element = ProjectRootElement.Create().AddTarget("t").
AddTask
("tt").AddOutputItem("tp", "i");
3055
var element = ProjectRootElement.Create().AddTarget("t").
AddTask
("tt").AddOutputProperty("tp", "p");
3066
var element = ProjectRootElement.Create().AddTarget("t").
AddTask
("tt").AddOutputProperty("tp", "p");
Construction\ProjectRootElement_Tests.cs (1)
1169
var task = target.
AddTask
("SomeTask");
Construction\ProjectTaskElement_Tests.cs (2)
272
ProjectTaskElement task = project.AddTarget("t").
AddTask
("tt");
287
ProjectTaskElement task = project.AddTarget("t").
AddTask
("tt");
Instance\ProjectInstance_Tests.cs (1)
381
xml.AddTarget("t").
AddTask
("Message").SetParameter("Text", "[OK]");
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (3)
152
newTarget1.Add2NewNamedChildrenWithVerify<ProjectTaskElement>(NewTaskName, (t, n) => t.
AddTask
(n), out var newTask1, out var newTask2);
224
var newTask = newTarget.AddNewNamedChaildWithVerify<ProjectTaskElement>(ObjectType.View, NewTasktName, (t, n) => t.
AddTask
(n));
320
var newTask = newTarget.AddNewNamedChaildWithVerify<ProjectTaskElement>(ObjectType.Real, "NewTaskName", (t, n) => t.
AddTask
(n));
Microsoft.Build.Engine.UnitTests (9)
BackEnd\BuildManager_Tests.cs (1)
3643
ProjectTaskElement buildTask = buildTarget.
AddTask
("MSBuild");
ConsoleLogger_Tests.cs (1)
147
ProjectTaskElement task = target.
AddTask
("Message");
Evaluation\Evaluator_Tests.cs (7)
5196
target.
AddTask
("Message").SetParameter("Text", prefix + ": MSBuildThisFileDirectory=$(MSBuildThisFileDirectory)");
5197
target.
AddTask
("Message").SetParameter("Text", prefix + ": MSBuildThisFileDirectoryNoRoot=$(MSBuildThisFileDirectoryNoRoot)");
5198
target.
AddTask
("Message").SetParameter("Text", prefix + ": MSBuildThisFile=$(MSBuildThisFile)");
5199
target.
AddTask
("Message").SetParameter("Text", prefix + ": MSBuildThisFileExtension=$(MSBuildThisFileExtension)");
5200
target.
AddTask
("Message").SetParameter("Text", prefix + ": MSBuildThisFileFullPath=$(MSBuildThisFileFullPath)");
5201
target.
AddTask
("Message").SetParameter("Text", prefix + ": MSBuildThisFileName=$(MSBuildThisFileName)");
5211
target.
AddTask
("Message").SetParameter("Text", "[$(MSBuildThisFile)]");