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