17 references to Metadata
Microsoft.Build (5)
Definition\ProjectItem.cs (2)
339foreach (ProjectMetadata metadataFromDefinition in itemDefinition.Metadata) 351foreach (ProjectMetadata metadatum in _inheritedItemDefinitions[i].Metadata)
Instance\ProjectInstance.cs (1)
974if (projectItemDefinition.Metadata is IDictionary<string, ProjectMetadata> linkedMetadataDict)
Instance\ProjectItemDefinitionInstance.cs (1)
62IEnumerable<ProjectMetadataInstance> projectMetadataInstances = itemDefinition.Metadata.Select(originalMetadata => new ProjectMetadataInstance(originalMetadata));
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemDefinitionLink.cs (1)
28/// Facilitate remoting the <see cref="ProjectItemDefinition.Metadata"/> and <see cref="ProjectItemDefinition.MetadataCount"/>.
Microsoft.Build.Engine.OM.UnitTests (6)
Definition\ProjectItemDefinition_Tests.cs (2)
84IEnumerable<ProjectMetadata> metadataCollection = itemDefinition.Metadata; 104IEnumerable<ProjectMetadata> metadataCollection = project.ItemDefinitions["i"].Metadata;
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (3)
182Verify(view.Metadata, real.Metadata, Verify, context); 184foreach (var rm in real.Metadata)
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemDefinitionLink.cs (1)
23public ICollection<MockProjectMetadataLinkRemoter> Metadata => this.OwningCollection.ExportCollection<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.Metadata);
Microsoft.Build.Engine.UnitTests (6)
Definition\ItemDefinitionGroup_Tests.cs (6)
45Assert.True(ContainsMetadata(p.ItemDefinitions["Compile"].Metadata, "First", "1st")); 46Assert.True(ContainsMetadata(p.ItemDefinitions["Compile"].Metadata, "Second", "2nd")); 73Assert.True(ContainsMetadata(p.ItemDefinitions["Compile"].Metadata, "First", "1st")); 74Assert.True(ContainsMetadata(p.ItemDefinitions["Compile"].Metadata, "Second", "2nd")); 75Assert.True(ContainsMetadata(p.ItemDefinitions["Link"].Metadata, "Third", "3rd")); 76Assert.True(ContainsMetadata(p.ItemDefinitions["Link"].Metadata, "Fourth", "4th"));