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