75 references to GetMetadata
Microsoft.Build (3)
Definition\ProjectItem.cs (2)
527return GetMetadata(name); 538ProjectMetadata predecessor = GetMetadata(metadataElement.Name);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemLink.cs (1)
49/// Facilitate remoting the <see cref="ProjectItem.GetMetadata"/>.
Microsoft.Build.Engine.OM.UnitTests (57)
Construction\ConstructionEditing_Tests.cs (2)
2353ProjectMetadata metadatum = Helpers.GetFirst(project.Items).GetMetadata("m"); 2360metadatum = Helpers.GetFirst(project.Items).GetMetadata("m");
Definition\DefinitionEditing_Tests.cs (5)
762ProjectMetadata metadatum = Helpers.GetFirst(project.GetItems("i")).GetMetadata("m"); 2015Assert.Equal("l1", item.GetMetadata("m").EvaluatedValue); 2016Assert.Equal("%(l)", item.GetMetadata("m").Xml.Value); 2034Assert.Equal("l1", item.GetMetadata("m").EvaluatedValue); 2035Assert.Equal("%(l)", item.GetMetadata("m").Xml.Value);
Definition\EditingElementsReferencedByOrReferences_Tests.cs (1)
303ProjectMetadata metadata = item.GetMetadata("N");
Definition\ProjectItem_Tests.cs (31)
134Assert.Equal(itemMetadata[0], item.GetMetadata("m1")); 135Assert.Equal(itemMetadata[1], item.GetMetadata("m2")); 165ProjectMetadata m0 = item.GetMetadata("m0"); 166ProjectMetadata m1 = item.GetMetadata("m1"); 214Assert.Null(item.GetMetadata("m0")); 1208Assert.True(Object.ReferenceEquals(item1.GetMetadata("m").Xml, item2.GetMetadata("m").Xml)); 1406Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("l").Xml, project.GetItems("m").First().GetMetadata("l").Xml)); 1407Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("m").Xml, project.GetItems("m").First().GetMetadata("m").Xml)); 1408Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("n").Xml, project.GetItems("m").First().GetMetadata("n").Xml)); 1409Assert.True(Object.ReferenceEquals(project.GetItems("j").First().GetMetadata("o").Xml, project.GetItems("k").First().GetMetadata("o").Xml)); 1410Assert.True(Object.ReferenceEquals(project.GetItems("k").First().GetMetadata("p").Xml, project.GetItems("m").First().GetMetadata("p").Xml)); 1411Assert.True(!Object.ReferenceEquals(project.GetItems("j").First().GetMetadata("p").Xml, project.GetItems("m").First().GetMetadata("p").Xml)); 1504Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("l").Xml, project.GetItems("m").First().GetMetadata("l").Xml)); 1505Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("m").Xml, project.GetItems("m").First().GetMetadata("m").Xml)); 1506Assert.True(Object.ReferenceEquals(project.GetItems("i").First().GetMetadata("n").Xml, project.GetItems("m").First().GetMetadata("n").Xml)); 1507Assert.True(Object.ReferenceEquals(project.GetItems("j").First().GetMetadata("o").Xml, project.GetItems("k").First().GetMetadata("o").Xml)); 1508Assert.True(Object.ReferenceEquals(project.GetItems("k").First().GetMetadata("p").Xml, project.GetItems("m").First().GetMetadata("p").Xml)); 1509Assert.True(!Object.ReferenceEquals(project.GetItems("j").First().GetMetadata("p").Xml, project.GetItems("m").First().GetMetadata("p").Xml));
Definition\ProjectMetadata_Tests.cs (13)
98item.GetMetadata("m").UnevaluatedValue = "m1"; 162ProjectMetadata metadatum = Helpers.GetFirst(project.GetItems("j")).GetMetadata("m1"); 189ProjectMetadata metadatum = Helpers.GetFirst(project.GetItems("i")).GetMetadata("m1"); 215ProjectMetadata metadatum = Helpers.GetFirst(project.GetItems("i")).GetMetadata("m1"); 242ProjectMetadata metadatum = Helpers.GetFirst(project.GetItems("i")).GetMetadata("m1"); 274ProjectMetadata metadatum = Helpers.GetFirst(project.GetItems("i")).GetMetadata("m1"); 306ProjectMetadata metadatum = Helpers.GetFirst(project.GetItems("i")).GetMetadata("m1"); 338ProjectMetadata metadatum = Helpers.GetFirst(project.GetItems("i")).GetMetadata("m1"); 471ProjectMetadata metadata = item.GetMetadata("m"); 526Assert.Equal("%3B", item.GetMetadata("EscapedSemicolon").UnevaluatedValue); 527Assert.Equal(";", item.GetMetadata("EscapedSemicolon").EvaluatedValue); 530Assert.Equal("%24", item.GetMetadata("EscapedDollarSign").UnevaluatedValue); 531Assert.Equal("$", item.GetMetadata("EscapedDollarSign").EvaluatedValue);
Definition\ProtectImports_Tests.cs (1)
488ProjectMetadata metadata = item.GetMetadata(OverridableMetadataName);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (3)
43var md = result.GetMetadata(m.Key); 235var grm = real.GetMetadata(rm.Name); 236var gvm = view.GetMetadata(rm.Name);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (1)
29=> this.OwningCollection.Export<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.GetMetadata(name));
Microsoft.Build.Engine.UnitTests (15)
EscapingInProjects_Tests.cs (6)
1844Assert.Equal("%3B", item.GetMetadata("EscapedSemicolon").UnevaluatedValue); 1845Assert.Equal("%3B", item.GetMetadata("EscapedSemicolon").EvaluatedValueEscaped); 1846Assert.Equal(";", item.GetMetadata("EscapedSemicolon").EvaluatedValue); 1850Assert.Equal("%24", item.GetMetadata("EscapedDollarSign").UnevaluatedValue); 1851Assert.Equal("%24", item.GetMetadata("EscapedDollarSign").EvaluatedValueEscaped); 1852Assert.Equal("$", item.GetMetadata("EscapedDollarSign").EvaluatedValue);
Evaluation\Evaluator_Tests.cs (7)
1586ProjectMetadata metadatum = project.GetItems("i").ElementAt(0).GetMetadata("m"); 1625ProjectMetadata metadatum = project.GetItems("i").ElementAt(1).GetMetadata("m"); 1657ProjectMetadata metadatum = project.GetItems("i").ElementAt(0).GetMetadata("m"); 1691ProjectMetadata metadatum = item.GetMetadata("m"); 1754ProjectMetadata metadatum = project.GetItems("i").ElementAt(0).GetMetadata("m"); 1848ProjectMetadata predecessor = project.GetItems("i").ElementAt(0).GetMetadata("m").Predecessor; 1887Assert.Null(project.GetItems("j").ElementAt(0).GetMetadata("m").Predecessor);
Parser_Tests.cs (2)
582var metadatam = projectItem.GetMetadata("m"); 594var metadatan = projectItem.GetMetadata("n");