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)
611
target.
AddTask
("tt");
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");
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");
Construction\ProjectRootElement_Tests.cs (1)
1173
var task = target.
AddTask
("SomeTask");
Construction\ProjectTaskElement_Tests.cs (2)
274
ProjectTaskElement task = project.AddTarget("t").
AddTask
("tt");
289
ProjectTaskElement task = project.AddTarget("t").
AddTask
("tt");
Instance\ProjectInstance_Tests.cs (1)
382
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)
3644
ProjectTaskElement buildTask = buildTarget.
AddTask
("MSBuild");
ConsoleLogger_Tests.cs (1)
149
ProjectTaskElement task = target.
AddTask
("Message");
Evaluation\Evaluator_Tests.cs (7)
5161
target.
AddTask
("Message").SetParameter("Text", prefix + ": MSBuildThisFileDirectory=$(MSBuildThisFileDirectory)");
5162
target.
AddTask
("Message").SetParameter("Text", prefix + ": MSBuildThisFileDirectoryNoRoot=$(MSBuildThisFileDirectoryNoRoot)");
5163
target.
AddTask
("Message").SetParameter("Text", prefix + ": MSBuildThisFile=$(MSBuildThisFile)");
5164
target.
AddTask
("Message").SetParameter("Text", prefix + ": MSBuildThisFileExtension=$(MSBuildThisFileExtension)");
5165
target.
AddTask
("Message").SetParameter("Text", prefix + ": MSBuildThisFileFullPath=$(MSBuildThisFileFullPath)");
5166
target.
AddTask
("Message").SetParameter("Text", prefix + ": MSBuildThisFileName=$(MSBuildThisFileName)");
5176
target.
AddTask
("Message").SetParameter("Text", "[$(MSBuildThisFile)]");