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