3 instantiations of ProjectOutputElement
Microsoft.Build (3)
Construction\ProjectOutputElement.cs (1)
150
var output = new
ProjectOutputElement
(element, containingProject) { TaskParameter = taskParameter };
Evaluation\ProjectParser.cs (1)
701
return new
ProjectOutputElement
(element, parent, _project);
ObjectModelRemoting\LinkedObjectFactory.cs (1)
190
return new
ProjectOutputElement
(link);
52 references to ProjectOutputElement
Microsoft.Build (18)
Construction\ProjectOutputElement.cs (2)
139
internal static
ProjectOutputElement
CreateDisconnected(string taskParameter, string itemType, string propertyName, ProjectRootElement containingProject)
150
var
output = new ProjectOutputElement(element, containingProject) { TaskParameter = taskParameter };
Construction\ProjectRootElement.cs (2)
1375
public
ProjectOutputElement
CreateOutputElement(string taskParameter, string itemType, string propertyName)
1377
return Link != null ? RootLink.CreateOutputElement(taskParameter, itemType, propertyName) :
ProjectOutputElement
.CreateDisconnected(taskParameter, itemType, propertyName, this);
Construction\ProjectTaskElement.cs (8)
128
public ICollection<
ProjectOutputElement
> Outputs => GetChildrenOfType<
ProjectOutputElement
>();
230
public
ProjectOutputElement
AddOutputItem(string taskParameter, string itemType)
242
public
ProjectOutputElement
AddOutputItem(string taskParameter, string itemType, string condition)
244
ProjectOutputElement
outputItem = ContainingProject.CreateOutputElement(taskParameter, itemType, null);
260
public
ProjectOutputElement
AddOutputProperty(string taskParameter, string propertyName)
272
public
ProjectOutputElement
AddOutputProperty(string taskParameter, string propertyName, string condition)
274
ProjectOutputElement
outputProperty = ContainingProject.CreateOutputElement(taskParameter, null, propertyName);
Evaluation\Evaluator.cs (1)
428
foreach (
ProjectOutputElement
output in taskElement.Outputs)
Evaluation\ProjectParser.cs (2)
670
ProjectOutputElement
output = ParseProjectOutputElement(childElement, task);
681
private
ProjectOutputElement
ParseProjectOutputElement(XmlElementWithLocation element, ProjectTaskElement parent)
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
182
/// Allow for creating a local representation to external object of type <see cref="
ProjectOutputElement
"/>
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
133
public abstract
ProjectOutputElement
CreateOutputElement(string taskParameter, string itemType, string propertyName);
ObjectModelRemoting\LinkedObjectFactory.cs (1)
188
public
ProjectOutputElement
Create(ProjectOutputElementLink link)
Microsoft.Build.Engine.OM.UnitTests (34)
Construction\ConstructionEditing_Tests.cs (8)
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");
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\ProjectOutputElement_Tests.cs (9)
26
ProjectOutputElement
output = GetOutputItem();
41
ProjectOutputElement
output = GetOutputProperty();
212
ProjectOutputElement
output = GetOutputProperty();
226
ProjectOutputElement
output = GetOutputProperty();
242
ProjectOutputElement
output = GetOutputProperty();
253
ProjectOutputElement
output = GetOutputItem();
269
ProjectOutputElement
output = GetOutputItem();
277
private static
ProjectOutputElement
GetOutputItem()
300
private static
ProjectOutputElement
GetOutputProperty()
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
697
public static void Verify(
ProjectOutputElement
viewXml,
ProjectOutputElement
realXml, ValidationContext context = null)
ObjectModelRemoting\Helpers\ViewValidation.cs (1)
159
if (VerifyCheckType<
ProjectOutputElement
>(view, real, context, Verify))
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (9)
115
xmlPair.CreateWithVerify<
ProjectOutputElement
>((p) => p.CreateOutputElement("taskParam", "itemType", null));
116
xmlPair.CreateWithVerify<
ProjectOutputElement
>((p) => p.CreateOutputElement("taskParam", null, "propName"));
228
newTask.Add2NewChildrenWithVerify<
ProjectOutputElement
>(NewOutputItem, (t, n) => t.AddOutputItem(n, "CPP"), (oi, n) => oi.TaskParameter == n, out var newOutputItem1, out var newOutputItem2);
234
newTask.Add2NewChildrenWithVerify<
ProjectOutputElement
>(NewOutputItemWithConfig, (t, n) => t.AddOutputItem(n, "source", "'Configuration'='Foo'"), (oi, n) => oi.TaskParameter == n, out var newOutputItemWithConfig1, out var newOutputItemWithConfig2);
239
newTask.Add2NewChildrenWithVerify<
ProjectOutputElement
>(NewOutputProperty, (t, n) => t.AddOutputProperty(n, "taskprop"), (oi, n) => oi.TaskParameter == n, out var newOutputProp1, out var newOutputProp2);
245
newTask.Add2NewChildrenWithVerify<
ProjectOutputElement
>(NewOutputPropertyWithConfig, (t, n) => t.AddOutputProperty(n, "source", "'Configuration'='Foo'"), (oi, n) => oi.TaskParameter == n, out var newOutputPropWithConfig1, out var newOutputPropWithConfig2);
308
newTask.QueryChildrenWithValidation<
ProjectOutputElement
>((po) => po.TaskParameter.EndsWith("1"), 4);
324
var newOutputItem = newTask.AddNewChaildWithVerify<
ProjectOutputElement
>(ObjectType.View, NewOutputItem, (t, n) => t.AddOutputItem(n, ItemType), (oi, n) => oi.TaskParameter == n);
331
var newOutputProp = newTask.AddNewChaildWithVerify<
ProjectOutputElement
>(ObjectType.View, NewOutputProperty, (t, n) => t.AddOutputProperty(n, PropertyName), (oi, n) => oi.TaskParameter == n);
ObjectModelRemoting\LinkedConstructionReadOnly_Tests.cs (2)
349
var realCollection = preReal.AllChildren.OfType<
ProjectOutputElement
>().ToList();
350
var viewCollection = preView.AllChildren.OfType<
ProjectOutputElement
>().ToList();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (2)
267
public override
ProjectOutputElement
CreateOutputElement(string taskParameter, string itemType, string propertyName)
269
return (
ProjectOutputElement
)this.Proxy.CreateOutputElement(taskParameter, itemType, propertyName).Import(this.Linker);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (1)
62
ElementInfo.New<
ProjectOutputElement
, MockProjectOutputElementLinkRemoter>(),