3 instantiations of ProjectTaskElement
Microsoft.Build (3)
Construction\ProjectTaskElement.cs (1)
418return new ProjectTaskElement(element, containingProject);
Evaluation\ProjectParser.cs (1)
664ProjectTaskElement task = new ProjectTaskElement(element, parent, _project);
ObjectModelRemoting\LinkedObjectFactory.cs (1)
212return new ProjectTaskElement(link);
82 references to ProjectTaskElement
Microsoft.Build (27)
Construction\ProjectOutputElement.cs (2)
31internal ProjectOutputElement(XmlElement xmlElement, ProjectTaskElement parent, ProjectRootElement containingProject) 170ErrorUtilities.VerifyThrowInvalidOperation(parent is ProjectTaskElement, "OM_CannotAcceptParent");
Construction\ProjectRootElement.cs (2)
1420public ProjectTaskElement CreateTaskElement(string name) 1422return Link != null ? RootLink.CreateTaskElement(name) : ProjectTaskElement.CreateDisconnected(name, this);
Construction\ProjectTargetElement.cs (4)
69public ICollection<ProjectTaskElement> Tasks => GetChildrenOfType<ProjectTaskElement>(); 379public ProjectTaskElement AddTask(string taskName) 383ProjectTaskElement task = ContainingProject.CreateTaskElement(taskName);
Construction\ProjectTaskElement.cs (1)
412internal static ProjectTaskElement CreateDisconnected(string name, ProjectRootElement containingProject)
Construction\Solution\SolutionProjectGenerator.cs (2)
319internal static ProjectTaskElement AddErrorWarningMessageElement( 333ProjectTaskElement task = target.AddTask(elementType);
Evaluation\Evaluator.cs (2)
424private static ProjectTaskInstance ReadTaskElement(ProjectTaskElement taskElement) 558case ProjectTaskElement task:
Evaluation\ProjectParser.cs (3)
651private ProjectTaskElement ParseProjectTaskElement(XmlElementWithLocation element, ProjectTargetElement parent) 664ProjectTaskElement task = new ProjectTaskElement(element, parent, _project); 681private ProjectOutputElement ParseProjectOutputElement(XmlElementWithLocation element, ProjectTaskElement parent)
Instance\ProjectTargetInstance.cs (1)
481ProjectTaskElement taskElement = target.AddTask(taskInstance.Name);
Instance\ProjectTaskInstance.cs (1)
98ProjectTaskElement element,
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
158public abstract ProjectTaskElement CreateTaskElement(string name);
ObjectModelRemoting\ConstructionObjectLinks\ProjectTaskElementLink.cs (7)
13/// Allow for creating a local representation to external object of type <see cref="ProjectTaskElement"/> 18/// Access to remote <see cref="ProjectTaskElement.Parameters"/>. 23/// Access to remote <see cref="ProjectTaskElement.ParameterLocations"/>. 28/// Facilitate remoting the <see cref="ProjectTaskElement.GetParameter"/>. 33/// Facilitate remoting the <see cref="ProjectTaskElement.SetParameter"/>. 38/// Facilitate remoting the <see cref="ProjectTaskElement.RemoveParameter"/>. 43/// Facilitate remoting the <see cref="ProjectTaskElement.RemoveAllParameters"/>.
ObjectModelRemoting\LinkedObjectFactory.cs (1)
210public ProjectTaskElement Create(ProjectTaskElementLink link)
Microsoft.Build.Engine.OM.UnitTests (53)
Construction\ConstructionEditing_Tests.cs (11)
308ProjectTaskElement task = project.CreateTaskElement("tt"); 323ProjectTaskElement task = project.CreateTaskElement("tt"); 338ProjectTaskElement task1 = project.CreateTaskElement("tt"); 339ProjectTaskElement task2 = project.CreateTaskElement("tt"); 354ProjectTaskElement task1 = project.CreateTaskElement("tt"); 355ProjectTaskElement task2 = project.CreateTaskElement("tt"); 587ProjectTaskElement task = project.CreateTaskElement("tt"); 2753var element = ProjectRootElement.Create().AddTarget("t").AddTask("tt"); 2764var element = ProjectRootElement.Create().AddTarget("t").AddTask("tt"); 3012var element = ProjectRootElement.Create().AddTarget("t").AddTask("tt"); 3023var element = ProjectRootElement.Create().AddTarget("t").AddTask("tt");
Construction\ProjectOutputElement_Tests.cs (4)
293ProjectTaskElement task = (ProjectTaskElement)Helpers.GetFirst(target.Children); 316ProjectTaskElement task = (ProjectTaskElement)Helpers.GetFirst(target.Children);
Construction\ProjectRootElement_Tests.cs (1)
1173var task = target.AddTask("SomeTask");
Construction\ProjectTargetElement_Tests.cs (4)
206ProjectTaskElement task1 = (ProjectTaskElement)tasks[0]; 207ProjectTaskElement task2 = (ProjectTaskElement)tasks[1];
Construction\ProjectTaskElement_Tests.cs (19)
34ProjectTaskElement task = GetTaskFromContent(content); 56ProjectTaskElement task = GetTaskFromContent(content); 75ProjectTaskElement task = GetTaskFromContent(content); 117ProjectTaskElement task = GetTaskFromContent(content); 138ProjectTaskElement task = GetTaskFromContent(content); 156ProjectTaskElement task = GetBasicTask(); 174ProjectTaskElement task = GetBasicTask(); 187ProjectTaskElement task = GetBasicTask(); 200ProjectTaskElement task = GetBasicTask(); 213ProjectTaskElement task = GetBasicTask(); 224ProjectTaskElement task = GetBasicTask(); 240ProjectTaskElement task = GetBasicTask(); 259ProjectTaskElement task = GetBasicTask(); 274ProjectTaskElement task = project.AddTarget("t").AddTask("tt"); 289ProjectTaskElement task = project.AddTarget("t").AddTask("tt"); 300private static ProjectTaskElement GetTaskFromContent(string content) 305return (ProjectTaskElement)Helpers.GetFirst(target.Children); 311private static ProjectTaskElement GetBasicTask() 321ProjectTaskElement task = GetTaskFromContent(content);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
633public static void Verify(ProjectTaskElement viewXml, ProjectTaskElement realXml, ValidationContext context = null)
ObjectModelRemoting\Helpers\ViewValidation.cs (1)
154if (VerifyCheckType<ProjectTaskElement>(view, real, context, Verify))
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (4)
122xmlPair.CreateWithVerify<ProjectTaskElement>((p) => p.CreateTaskElement("task")); 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));
ObjectModelRemoting\LinkedConstructionReadOnly_Tests.cs (2)
270var realCollection = preReal.AllChildren.OfType<ProjectTaskElement>().ToList(); 271var viewCollection = preView.AllChildren.OfType<ProjectTaskElement>().ToList();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (2)
290public override ProjectTaskElement CreateTaskElement(string name) 292return (ProjectTaskElement)this.Proxy.CreateTaskElement(name).Import(this.Linker);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectTaskElementLink.cs (2)
14public ProjectTaskElement TaskXml => (ProjectTaskElement)Source;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (1)
67ElementInfo.New<ProjectTaskElement , MockProjectTaskElementLinkRemoter>(),
Microsoft.Build.Engine.UnitTests (2)
BackEnd\BuildManager_Tests.cs (1)
3644ProjectTaskElement buildTask = buildTarget.AddTask("MSBuild");
ConsoleLogger_Tests.cs (1)
149ProjectTaskElement task = target.AddTask("Message");