44 references to Name
Microsoft.Build (20)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
186
pluginSettings.Add(metadatum.
Name
, metadatum.EvaluatedValue);
BackEnd\Components\RequestBuilder\Lookup.cs (2)
849
List<string> metadataToRemove = new List<string>(itemToModify.Metadata.Where(m => modificationsToApply[m.
Name
].Remove).Select(m => m.
Name
));
Instance\ProjectItemDefinitionInstance.cs (1)
217
element.AddMetadata(metadataInstance.
Name
, metadataInstance.EvaluatedValue);
Instance\ProjectItemInstance.cs (15)
685
item.AddMetadata(metadataInstance.
Name
, metadataInstance.EvaluatedValue);
951
names.Add(metadatum.
Name
);
1102
result.Add(new KeyValuePair<string, string>(projectMetadataInstance.
Name
, projectMetadataInstance.EvaluatedValue));
1116
yield return new KeyValuePair<string, string>(projectMetadataInstance.
Name
, projectMetadataInstance.EvaluatedValue);
1451
.Where(metadatum => string.IsNullOrEmpty(destinationItem.GetMetadata(metadatum.
Name
)))
1452
.Select(metadatum => new KeyValuePair<string, string>(metadatum.
Name
, GetMetadataEscaped(metadatum.
Name
)));
1470
string destinationValue = destinationItem.GetMetadata(metadatum.
Name
);
1474
destinationItem.SetMetadata(metadatum.
Name
, GetMetadataEscaped(metadatum.
Name
));
1501
clonedMetadata[metadatum.
Name
] = metadatum.EvaluatedValue;
1518
clonedMetadata[metadatum.
Name
] = metadatum.EvaluatedValueEscaped;
1643
thisNames.Add(metadatum.
Name
);
1656
string name = metadatum.
Name
;
1773
int key = interner.Intern(metadatum.
Name
);
Instance\ProjectMetadataInstance.cs (1)
134
{ return
Name
; }
Microsoft.Build.Engine.OM.UnitTests (8)
Instance\ProjectItemInstance_Tests.cs (7)
100
Assert.Equal("m1", item.GetMetadata("m1").
Name
);
101
Assert.Equal("m2", item.GetMetadata("m2").
Name
);
120
Assert.Equal("m1", item.GetMetadata("m1").
Name
);
121
Assert.Equal("m2", item.GetMetadata("m2").
Name
);
480
itemMetadata = itemMetadata.OrderBy(pmi => pmi.
Name
).ToList();
483
Assert.Equal("m1", itemMetadata[0].
Name
);
484
Assert.Equal("m2", itemMetadata[1].
Name
);
Instance\ProjectMetadataInstance_Tests.cs (1)
25
Assert.Equal("m", metadata.
Name
);
Microsoft.Build.Engine.UnitTests (3)
Instance\ProjectMetadataInstance_Internal_Tests.cs (3)
31
Assert.Equal("m", clone.
Name
);
47
Assert.Equal(metadata.
Name
, deserializedMetadata.
Name
);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (13)
TargetTests.cs (13)
173
Assert.Equal("Value", metadata.
Name
);
206
Assert.Equal("Value", metadata.
Name
);
235
Assert.Equal("Value", metadata.
Name
);
265
var itemType = item.Metadata.SingleOrDefault(m => m.
Name
== "ItemType");
269
var metaName = item.Metadata.SingleOrDefault(m => m.
Name
== "MetadataName");
273
var customMeta = item.Metadata.SingleOrDefault(m => m.
Name
== metaName.EvaluatedValue);
307
var itemType = item.Metadata.SingleOrDefault(m => m.
Name
== "ItemType");
311
var metaName = item.Metadata.SingleOrDefault(m => m.
Name
== "MetadataName");
315
var customMeta = item.Metadata.SingleOrDefault(m => m.
Name
== metaName.EvaluatedValue);
347
var itemType = item.Metadata.SingleOrDefault(m => m.
Name
== "ItemType");
351
var metaName = item.Metadata.SingleOrDefault(m => m.
Name
== "MetadataName");
382
var itemType = item.Metadata.SingleOrDefault(m => m.
Name
== "ItemType");
386
var metaName = item.Metadata.SingleOrDefault(m => m.
Name
== "MetadataName");