3 instantiations of ProjectItemDefinitionElement
Microsoft.Build (3)
Construction\ProjectItemDefinitionElement.cs (1)
106return new ProjectItemDefinitionElement(element, containingProject);
Evaluation\ProjectParser.cs (1)
732ProjectItemDefinitionElement itemDefinition = new ProjectItemDefinitionElement(element, parent, _project);
ObjectModelRemoting\LinkedObjectFactory.cs (1)
155return new ProjectItemDefinitionElement(link);
44 references to ProjectItemDefinitionElement
Microsoft.Build (26)
Construction\ProjectItemDefinitionElement.cs (1)
96internal static ProjectItemDefinitionElement CreateDisconnected(string itemType, ProjectRootElement containingProject)
Construction\ProjectItemDefinitionGroupElement.cs (4)
48public ICollection<ProjectItemDefinitionElement> ItemDefinitions => GetChildrenOfType<ProjectItemDefinitionElement>(); 54public ProjectItemDefinitionElement AddItemDefinition(string itemType) 56ProjectItemDefinitionElement itemDefinition = ContainingProject.CreateItemDefinitionElement(itemType);
Construction\ProjectMetadataElement.cs (1)
168ErrorUtilities.VerifyThrowInvalidOperation(parent is ProjectItemElement || parent is ProjectItemDefinitionElement, "OM_CannotAcceptParent");
Construction\ProjectRootElement.cs (8)
300public ICollection<ProjectItemDefinitionElement> ItemDefinitions => new ReadOnlyCollection<ProjectItemDefinitionElement>(GetAllChildrenOfType<ProjectItemDefinitionElement>()); 1062public ProjectItemDefinitionElement AddItemDefinition(string itemType) 1075foreach (ProjectItemDefinitionElement itemDefinition in itemDefinitionGroup.ItemDefinitions) 1095ProjectItemDefinitionElement newItemDefinition = CreateItemDefinitionElement(itemType); 1284public ProjectItemDefinitionElement CreateItemDefinitionElement(string itemType) 1286return Link != null ? RootLink.CreateItemDefinitionElement(itemType) : ProjectItemDefinitionElement.CreateDisconnected(itemType, this);
Definition\ProjectItemDefinition.cs (1)
173ProjectItemDefinitionElement itemDefinition = _project.Xml.AddItemDefinition(_itemType);
Evaluation\Evaluator.cs (2)
996foreach (ProjectItemDefinitionElement itemDefinitionElement in itemDefinitionGroupElement.ItemDefinitions) 1332private void EvaluateItemDefinitionElement(ProjectItemDefinitionElement itemDefinitionElement)
Evaluation\ProjectParser.cs (4)
406if (parent is ProjectItemDefinitionElement) 715ProjectItemDefinitionElement itemDefinition = ParseProjectItemDefinitionXml(childElement, itemDefinitionGroup); 726private ProjectItemDefinitionElement ParseProjectItemDefinitionXml(XmlElementWithLocation element, ProjectItemDefinitionGroupElement parent) 732ProjectItemDefinitionElement itemDefinition = new ProjectItemDefinitionElement(element, parent, _project);
Instance\ProjectItemDefinitionInstance.cs (2)
210internal ProjectItemDefinitionElement ToProjectItemDefinitionElement(ProjectElementContainer parent) 212ProjectItemDefinitionElement element = parent.ContainingProject.CreateItemDefinitionElement(ItemType);
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementContainerLink.cs (1)
80/// Allow for creating a local representation to external object of type <see cref="ProjectItemDefinitionElement"/>
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
93public abstract ProjectItemDefinitionElement CreateItemDefinitionElement(string itemType);
ObjectModelRemoting\LinkedObjectFactory.cs (1)
153public ProjectItemDefinitionElement Create(ProjectItemDefinitionElementLink link)
Microsoft.Build.Engine.OM.UnitTests (18)
Construction\ConstructionEditing_Tests.cs (2)
2005ProjectItemDefinitionElement itemDefinition = project.AddItemDefinition("i"); 2073ProjectItemDefinitionElement last = project.AddItemDefinition("i");
Construction\ProjectItemDefinitionElement_Tests.cs (4)
37ProjectItemDefinitionElement itemDefinition = Helpers.GetFirst(itemDefinitionGroup.ItemDefinitions); 61ProjectItemDefinitionElement definition = Helpers.GetFirst(itemDefinitionGroup.ItemDefinitions); 110ProjectItemDefinitionElement itemDefinition = Helpers.GetFirst(itemDefinitionGroup.ItemDefinitions); 207ProjectItemDefinitionElement itemDefinition = project.AddItemDefinitionGroup().AddItemDefinition("i");
Construction\ProjectMetadataElement_Tests.cs (1)
334var itemDefinition = itemDefinitions.First();
Construction\ProjectRootElement_Tests.cs (1)
1179var id = idg.AddItemDefinition("SomeType");
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
859public static void Verify(ProjectItemDefinitionElement viewXml, ProjectItemDefinitionElement realXml, ValidationContext context = null)
ObjectModelRemoting\Helpers\ViewValidation.cs (1)
209if (VerifyCheckType<ProjectItemDefinitionElement>(view, real, context, Verify))
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (4)
89xmlPair.Add2NewChildrenWithVerify<ProjectItemDefinitionElement>("cpp", (p, it) => p.AddItemDefinition(it), (pi, it) => pi.ItemType == it, out var itemDefinition1, out var itemDefinition2); 106xmlPair.CreateWithVerify<ProjectItemDefinitionElement>((p) => p.CreateItemDefinitionElement("creteItemType")); 611var itemDef = xmlPair.AddNewChaildWithVerify<ProjectItemDefinitionElement>(ObjectType.View, "source", (p, s) => p.AddItemDefinition(s), (pe, s) => true); 633itemDefGrp.Add2NewChildrenWithVerify<ProjectItemDefinitionElement>("src", (idg, it) => idg.AddItemDefinition(it), (id, n) => id.ItemType == n, out var itemDef1, out var itemDef2);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (2)
227public override ProjectItemDefinitionElement CreateItemDefinitionElement(string itemType) 229return (ProjectItemDefinitionElement)this.Proxy.CreateItemDefinitionElement(itemType).Import(this.Linker);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (1)
69ElementInfo.New<ProjectItemDefinitionElement , MockProjectItemDefinitionElementLinkRemoter>(),