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