1 type derived from ProjectItemDefinition
Microsoft.Build (1)
ObjectModelRemoting\LinkedObjectFactory.cs (1)
265private class LinkedProjectItemDefinition : ProjectItemDefinition, ILinkableObject, IImmutableInstanceProvider<ProjectItemDefinitionInstance>
2 instantiations of ProjectItemDefinition
Microsoft.Build (1)
Definition\Project.cs (1)
4421ProjectItemDefinition newItemDefinition = new ProjectItemDefinition(Project, itemType);
Microsoft.Build.Engine.UnitTests (1)
Instance\TaskItem_Tests.cs (1)
217ProjectItemDefinition projectItemDefinition = new ProjectItemDefinition(project, "MyItem");
67 references to ProjectItemDefinition
Microsoft.Build (47)
Definition\Project.cs (15)
659public IDictionary<string, ProjectItemDefinition> ItemDefinitions => implementation.ItemDefinitions; 861public static string GetEvaluatedItemIncludeEscaped(ProjectItemDefinition item) 1099public static string GetMetadataValueEscaped(ProjectItemDefinition item, string name) 2212public override IDictionary<string, ProjectItemDefinition> ItemDefinitions => _data.ItemDefinitions; 3528List<ProjectItem> items = Evaluator<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.CreateItemsFromInclude( 3595List<ProjectItem> items = Evaluator<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.CreateItemsFromInclude( 3717Evaluator<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.Evaluate( 4009internal class Data : IItemProvider<ProjectItem>, IPropertyProvider<ProjectProperty>, IEvaluatorData<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition> 4047IEnumerable<ProjectItemDefinition> IEvaluatorData<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.ItemDefinitionsEnumerable => ItemDefinitions.Values; 4222internal RetrievableEntryHashSet<ProjectItemDefinition> ItemDefinitions { get; private set; } 4273ItemDefinitions = new RetrievableEntryHashSet<ProjectItemDefinition>(MSBuildNameIgnoreCaseComparer.Default); 4421ProjectItemDefinition newItemDefinition = new ProjectItemDefinition(Project, itemType); 4433ItemDefinitions.TryGetValue(itemType, out ProjectItemDefinition itemDefinition); 4514string IEvaluatorData<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.ExpandString(string unexpandedValue)
Definition\ProjectItem.cs (10)
74private readonly List<ProjectItemDefinition> _inheritedItemDefinitions; 128List<ProjectItemDefinition> inheritedItemDefinitionsCloned) 336ProjectItemDefinition itemDefinition; 395internal List<ProjectItemDefinition> InheritedItemDefinitions 882foreach (ProjectItemDefinition inheritedItemDefinition in _inheritedItemDefinitions) 894ProjectItemDefinition itemDefinition; 1071List<ProjectItemDefinition> inheritedItemDefinitionsClone = null; 1075inheritedItemDefinitionsClone ??= new List<ProjectItemDefinition>(inheritedItemDefinitionsCount + 1); 1079ProjectItemDefinition sourceItemDefinition; 1082inheritedItemDefinitionsClone ??= new List<ProjectItemDefinition>(inheritedItemDefinitionsCount + 1);
Instance\ProjectInstance.cs (10)
905IDictionary<string, ProjectItemDefinition> linkedProjectItemDefinitions = linkedProject.ItemDefinitions; 908out IDictionary<string, ProjectItemDefinition> elementsDictionary, 909out IDictionary<(string, int, int), ProjectItemDefinition> constrainedElementsDictionary); 911var hashSet = new ImmutableElementCollectionConverter<ProjectItemDefinition, ProjectItemDefinitionInstance>( 964private static ProjectItemDefinitionInstance ConvertCachedItemDefinitionToInstance(ProjectItemDefinition projectItemDefinition) 3331foreach (ProjectItemDefinition inheritedItemDefinition in item.InheritedItemDefinitions) 3383linkedProject.ItemDefinitions.TryGetValue(item.ItemType, out ProjectItemDefinition itemTypeDefinition); 3386new ImmutableItemDefinitionsListConverter<ProjectItemDefinition, ProjectItemDefinitionInstance>( 3432private void CreateItemDefinitionsSnapshot(IDictionary<string, ProjectItemDefinition> itemDefinitions) 3436foreach (ProjectItemDefinition definition in itemDefinitions.Values)
Instance\ProjectItemDefinitionInstance.cs (1)
56internal ProjectItemDefinitionInstance(ProjectItemDefinition itemDefinition)
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemDefinitionLink.cs (8)
13/// Allow for creating a local representation to external object of type <see cref="ProjectItemDefinition"/> 18/// Access to remote <see cref="ProjectItemDefinition.Project"/>. 23/// Access to remote <see cref="ProjectItemDefinition.ItemType"/>. 28/// Facilitate remoting the <see cref="ProjectItemDefinition.Metadata"/> and <see cref="ProjectItemDefinition.MetadataCount"/>. 33/// Facilitate remoting the <see cref="ProjectItemDefinition.GetMetadata"/>. 38/// Facilitate remoting the <see cref="ProjectItemDefinition.GetMetadataValue"/>. 43/// Facilitate remoting the <see cref="ProjectItemDefinition.SetMetadataValue"/>.
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
61public abstract IDictionary<string, ProjectItemDefinition> ItemDefinitions { get; }
ObjectModelRemoting\DefinitionObjectsLinks\ProjectMetadataLink.cs (1)
19/// Can be either <see cref="ProjectItem"/>, or <see cref="ProjectItemDefinition"/>
ObjectModelRemoting\LinkedObjectFactory.cs (1)
88public ProjectItemDefinition Create(ProjectItemDefinitionLink link, Project project = null)
Microsoft.Build.Engine.OM.UnitTests (19)
Definition\DefinitionEditing_Tests.cs (1)
2049ProjectItemDefinition definition = project.ItemDefinitions["i"];
Definition\ProjectItem_Tests.cs (1)
168ProjectItemDefinition definition = project.ItemDefinitions["i"];
Definition\ProjectItemDefinition_Tests.cs (3)
83ProjectItemDefinition itemDefinition = project.ItemDefinitions["i"]; 135ProjectItemDefinition definition = project.ItemDefinitions["i"]; 165ProjectItemDefinition definition = project.ItemDefinitions["i"];
Definition\ProjectMetadata_Tests.cs (3)
369ProjectItemDefinition itemDefinition; 398ProjectItemDefinition itemDefinition; 432ProjectItemDefinition itemDefinition;
ObjectModelRemoting\Helpers\ViewValidation.cs (1)
260if (VerifyCheckType<ProjectItemDefinition>(view, real, context, Verify))
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
164public static void Verify(ProjectItemDefinition view, ProjectItemDefinition real, ValidationContext context)
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemDefinitionLink.cs (2)
12internal sealed class MockProjectItemDefinitionLinkRemoter : MockLinkRemoter<ProjectItemDefinition> 14public override ProjectItemDefinition CreateLinkedObject(IImportHolder holder)
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (3)
46=> this.OwningCollection.ExportDictionary<string, ProjectItemDefinition, MockProjectItemDefinitionLinkRemoter>(this.Source.ItemDefinitions); 145public override IDictionary<string, ProjectItemDefinition> ItemDefinitions 146=> this.Linker.ImportDictionary<string, ProjectItemDefinition, MockProjectItemDefinitionLinkRemoter>(this.Proxy.ItemDefinitions);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectMetadataLink.cs (3)
37return this.OwningCollection.Export<ProjectItemDefinition, MockProjectItemDefinitionLinkRemoter>((ProjectItemDefinition)parent); 76return this.Linker.Import<ProjectItemDefinition, MockProjectItemDefinitionLinkRemoter>((MockProjectItemDefinitionLinkRemoter)parentRemoter);
Microsoft.Build.Engine.UnitTests (1)
Instance\TaskItem_Tests.cs (1)
217ProjectItemDefinition projectItemDefinition = new ProjectItemDefinition(project, "MyItem");