26 references to Metadata
Microsoft.Build (6)
Definition\ProjectItem.cs (4)
148IEnumerable<KeyValuePair<string, string>> IItemData.EnumerateMetadata() => Metadata.Select(m => new KeyValuePair<string, string>(m.Name, m.EvaluatedValue)); 295IEnumerable<ProjectMetadata> IItem<ProjectMetadata>.Metadata => Metadata; 306{ return Metadata.Count + FileUtilities.ItemSpecModifiers.All.Length; } 321/// Internal version of <see cref="Metadata">Metadata</see> that returns
Instance\ProjectItemInstance.cs (1)
2178foreach (ProjectMetadata metadatum in baseItem.Metadata)
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemLink.cs (1)
34/// Facilitate remoting the <see cref="ProjectItem.Metadata"/> and <see cref="ProjectItem.MetadataCount"/>.
Microsoft.Build.Engine.OM.UnitTests (14)
Definition\ProjectItem_Tests.cs (6)
105Assert.False(item.Metadata.GetEnumerator().MoveNext()); 127var itemMetadata = Helpers.MakeList(item.Metadata); 275Assert.False(item.Metadata.GetEnumerator().MoveNext()); 1531var itemMetadata = Helpers.MakeList(item.Metadata); 2232var metadata = item.Metadata; 2292var metadata = item.Metadata;
Definition\ProtectImports_Tests.cs (4)
542IEnumerable<ProjectMetadata> metadatum = item.Metadata.Where(m => m.Name == ImportedMetadataName); 559IEnumerable<ProjectMetadata> metadatum = item.Metadata.Where(m => m.Name == NonOverridableMetadataName); 576IEnumerable<ProjectMetadata> metadatum = item.Metadata.Where(m => m.Name == OverridableMetadataName); 649IEnumerable<ProjectMetadata> metadatum = item.Metadata.Where(m => m.Name == ProjectMetadataName);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (3)
227Verify(view.Metadata, real.Metadata, Verify, context); 229foreach (var rm in real.Metadata)
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (1)
25public ICollection<MockProjectMetadataLinkRemoter> MetadataCollection => this.OwningCollection.ExportCollection<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.Metadata);
Microsoft.Build.Engine.UnitTests (4)
Definition\ItemDefinitionGroup_Tests.cs (1)
1870return ContainsMetadata(item.Metadata, name, value);
Definition\ProjectItem_Tests.cs (1)
36Assert.Single(Helpers.MakeList(item2.Metadata));
Evaluation\SdkResultEvaluation_Tests.cs (2)
98item.Metadata.Select(m => (m.Name, m.EvaluatedValue)) 457item.Metadata.Select(m => (m.Name, m.EvaluatedValue))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\ProjectFile.cs (1)
472=> item.Metadata.FirstOrDefault(m => string.Equals(m.Name, MetadataNames.HintPath, StringComparison.OrdinalIgnoreCase))?.EvaluatedValue ?? string.Empty;
MSBuild (1)
JsonOutputFormatter.cs (1)
99foreach (ProjectMetadata metadatum in item.Metadata)