47 references to Metadata
Microsoft.Build (4)
Evaluation\Evaluator.cs (2)
502List<ProjectItemGroupTaskMetadataInstance> metadata = itemElement.Metadata.Count > 0 ? new List<ProjectItemGroupTaskMetadataInstance>() : null; 504foreach (ProjectMetadataElement metadataElement in itemElement.Metadata)
Evaluation\LazyItemEvaluator.cs (2)
655operationBuilder.Metadata.AddRange(itemElement.Metadata); 657var itemsAndMetadataFound = ExpressionShredder.GetReferencedItemNamesAndMetadata(GetExpandedMetadataValuesAndConditions(itemElement.Metadata, _expander));
Microsoft.Build.Engine.OM.UnitTests (38)
Construction\ConstructionEditing_Tests.cs (1)
1080var referenceSibling = item.Metadata.ElementAt(position);
Construction\ProjectItemElement_Tests.cs (7)
82Assert.Equal(0, Helpers.Count(item.Metadata)); 99Assert.Equal(2, item.Metadata.Count); 100ProjectMetadataElement metadatum1 = item.Metadata.First(); 101ProjectMetadataElement metadatum2 = item.Metadata.Skip(1).First(); 366var metadata1 = Helpers.MakeList(items[0].Metadata); 371var metadata2 = Helpers.MakeList(items[1].Metadata); 415var metadata = Helpers.MakeList(item.Metadata);
Construction\ProjectMetadataElement_Tests.cs (15)
434Assert.Single(items[0].Metadata); 436var metadata = items[0].Metadata.First(); 493Assert.Single(items[0].Metadata); 495var metadata = items[0].Metadata.First(); 570Assert.Single(items[0].Metadata); 572var metadata = items[0].Metadata.First(); 687Assert.Single(items[0].Metadata); 689var metadata = items[0].Metadata.First(); 816Assert.Single(items[0].Metadata); 818var metadata = items[0].Metadata.First(); 948Assert.Single(items[0].Metadata); 950var metadata = items[0].Metadata.First(); 1063Assert.Empty(items[0].Metadata); 1174Assert.Empty(items[0].Metadata); 1273ProjectMetadataElement metadata = Helpers.GetFirst(item.Metadata);
Definition\DefinitionEditing_Tests.cs (1)
1239Assert.Equal(2, Helpers.MakeList(itemElement.Metadata).Count);
Definition\ProjectItem_Tests.cs (5)
1881Assert.Equal(0, Helpers.Count(item.Xml.Metadata)); 2191Assert.Single(item.Xml.Metadata); 2193ProjectMetadataElement metadataElement = item.Xml.Metadata.FirstOrDefault(); 2245var metadataElements = items.First().Xml.Metadata; 2301var metadataElements = items.First().Xml.Metadata;
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
903Verify(viewXml.Metadata, realXml.Metadata, ViewValidation.Verify, context);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (7)
85ViewValidation.VerifyMetadata(itemMetadata, (k) => itemWithMetadata1.View.Metadata.Where((md) => md.Name == k).FirstOrDefault().Value); 670Assert.Empty(item.View.Metadata); 673Assert.Equal(2, item.View.Metadata.Count); 675Assert.Equal(4, item.View.Metadata.Count); 677Assert.Equal(6, item.View.Metadata.Count); 707ViewValidation.VerifyMetadata(itemMetadata, (k) => itemWithMetadata1.View.Metadata.Where((md) => md.Name == k).FirstOrDefault().Value); 708ViewValidation.VerifyMetadata(itemMetadata, (k) => itemWithMetadata2.View.Metadata.Where((md) => md.Name == k).FirstOrDefault().Value);
Microsoft.Build.Engine.UnitTests (5)
Evaluation\Evaluator_Tests.cs (5)
1595ProjectMetadataElement xml2 = project.Xml.Items.ElementAt(0).Metadata.ElementAt(0); 1630ProjectMetadataElement xml1 = project.Xml.Items.ElementAt(1).Metadata.ElementAt(0); 1662ProjectMetadataElement xml1 = project.Xml.Items.ElementAt(0).Metadata.ElementAt(0); 1687project.Xml.Items.First().Metadata.First(); 1726project.Xml.Items.First().Metadata.First();