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