31 references to AddTask
Microsoft.Build (2)
Construction\Solution\SolutionProjectGenerator.cs (1)
333ProjectTaskElement task = target.AddTask(elementType);
Instance\ProjectTargetInstance.cs (1)
481ProjectTaskElement taskElement = target.AddTask(taskInstance.Name);
Microsoft.Build.Engine.OM.UnitTests (20)
Construction\ConstructionEditing_Tests.cs (13)
611target.AddTask("tt"); 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"); 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");
Construction\ProjectRootElement_Tests.cs (1)
1173var task = target.AddTask("SomeTask");
Construction\ProjectTaskElement_Tests.cs (2)
274ProjectTaskElement task = project.AddTarget("t").AddTask("tt"); 289ProjectTaskElement task = project.AddTarget("t").AddTask("tt");
Instance\ProjectInstance_Tests.cs (1)
382xml.AddTarget("t").AddTask("Message").SetParameter("Text", "[OK]");
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (3)
152newTarget1.Add2NewNamedChildrenWithVerify<ProjectTaskElement>(NewTaskName, (t, n) => t.AddTask(n), out var newTask1, out var newTask2); 224var newTask = newTarget.AddNewNamedChaildWithVerify<ProjectTaskElement>(ObjectType.View, NewTasktName, (t, n) => t.AddTask(n)); 320var newTask = newTarget.AddNewNamedChaildWithVerify<ProjectTaskElement>(ObjectType.Real, "NewTaskName", (t, n) => t.AddTask(n));
Microsoft.Build.Engine.UnitTests (9)
BackEnd\BuildManager_Tests.cs (1)
3644ProjectTaskElement buildTask = buildTarget.AddTask("MSBuild");
ConsoleLogger_Tests.cs (1)
149ProjectTaskElement task = target.AddTask("Message");
Evaluation\Evaluator_Tests.cs (7)
5161target.AddTask("Message").SetParameter("Text", prefix + ": MSBuildThisFileDirectory=$(MSBuildThisFileDirectory)"); 5162target.AddTask("Message").SetParameter("Text", prefix + ": MSBuildThisFileDirectoryNoRoot=$(MSBuildThisFileDirectoryNoRoot)"); 5163target.AddTask("Message").SetParameter("Text", prefix + ": MSBuildThisFile=$(MSBuildThisFile)"); 5164target.AddTask("Message").SetParameter("Text", prefix + ": MSBuildThisFileExtension=$(MSBuildThisFileExtension)"); 5165target.AddTask("Message").SetParameter("Text", prefix + ": MSBuildThisFileFullPath=$(MSBuildThisFileFullPath)"); 5166target.AddTask("Message").SetParameter("Text", prefix + ": MSBuildThisFileName=$(MSBuildThisFileName)"); 5176target.AddTask("Message").SetParameter("Text", "[$(MSBuildThisFile)]");