26 references to Metadata
Microsoft.Build (6)
Definition\ProjectItem.cs (4)
148
IEnumerable<KeyValuePair<string, string>> IItemData.EnumerateMetadata() =>
Metadata
.Select(m => new KeyValuePair<string, string>(m.Name, m.EvaluatedValue));
295
IEnumerable<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)
2178
foreach (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)
105
Assert.False(item.
Metadata
.GetEnumerator().MoveNext());
127
var itemMetadata = Helpers.MakeList(item.
Metadata
);
275
Assert.False(item.
Metadata
.GetEnumerator().MoveNext());
1531
var itemMetadata = Helpers.MakeList(item.
Metadata
);
2232
var metadata = item.
Metadata
;
2292
var metadata = item.
Metadata
;
Definition\ProtectImports_Tests.cs (4)
542
IEnumerable<ProjectMetadata> metadatum = item.
Metadata
.Where(m => m.Name == ImportedMetadataName);
559
IEnumerable<ProjectMetadata> metadatum = item.
Metadata
.Where(m => m.Name == NonOverridableMetadataName);
576
IEnumerable<ProjectMetadata> metadatum = item.
Metadata
.Where(m => m.Name == OverridableMetadataName);
649
IEnumerable<ProjectMetadata> metadatum = item.
Metadata
.Where(m => m.Name == ProjectMetadataName);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (3)
227
Verify(view.
Metadata
, real.
Metadata
, Verify, context);
229
foreach (var rm in real.
Metadata
)
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (1)
25
public ICollection<MockProjectMetadataLinkRemoter> MetadataCollection => this.OwningCollection.ExportCollection<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.
Metadata
);
Microsoft.Build.Engine.UnitTests (4)
Definition\ItemDefinitionGroup_Tests.cs (1)
1870
return ContainsMetadata(item.
Metadata
, name, value);
Definition\ProjectItem_Tests.cs (1)
36
Assert.Single(Helpers.MakeList(item2.
Metadata
));
Evaluation\SdkResultEvaluation_Tests.cs (2)
98
item.
Metadata
.Select(m => (m.Name, m.EvaluatedValue))
457
item.
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)
99
foreach (ProjectMetadata metadatum in item.
Metadata
)