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