Implemented interface member:
method
GetMetadataValue
Microsoft.Build.Evaluation.IItem.GetMetadataValue(System.String)
262 references to GetMetadataValue
dotnet-openapi (3)
Commands\BaseCommand.cs (1)
167
i => string.Equals(i.
GetMetadataValue
(SourceUrlAttrName), sourceUrl, StringComparison.Ordinal)))
Commands\RefreshCommand.cs (1)
46
var attrUrl = item.
GetMetadataValue
(SourceUrlAttrName);
Commands\RemoveCommand.cs (1)
59
var sourceUrl = item.HasMetadata(SourceUrlAttrName) ? item.
GetMetadataValue
(SourceUrlAttrName) : null;
Microsoft.Build (4)
Construction\Solution\SolutionProjectGenerator.cs (1)
2157
string referencedProjectGuid = reference.
GetMetadataValue
("Project");
Definition\ProjectItem.cs (2)
284
/// Get the values of built-in metadata using <see cref="
GetMetadataValue
(string)"/>.
476
/// See <see cref="
GetMetadataValue
(string)">GetMetadataValue</see> for a more detailed explanation.
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemLink.cs (1)
54
/// Facilitate remoting the <see cref="ProjectItem.
GetMetadataValue
"/>.
Microsoft.Build.Engine.OM.UnitTests (207)
Definition\DefinitionEditing_Tests.cs (4)
1242
Assert.Equal("n1", item.
GetMetadataValue
("n"));
1883
Assert.Equal("m1", items[0].
GetMetadataValue
("m"));
1911
Assert.Equal("m1$$", items[0].
GetMetadataValue
("m"));
1941
Assert.Equal("m2", items[0].
GetMetadataValue
("m"));
Definition\EditingElementsReferencedByOrReferences_Tests.cs (7)
138
Assert.Equal("A;B;C", item1.
GetMetadataValue
("M")); // "Invalid metadata at start"
141
Assert.Equal("A;D", item2.
GetMetadataValue
("M")); // "Invalid metadata at start"
211
Assert.Equal("A;B", item1.
GetMetadataValue
("M")); // "Invalid metadata after first removal"
213
Assert.Equal("A;D", item2.
GetMetadataValue
("M")); // "Invalid metadata after first removal"
265
Assert.Equal("A;B", item1.
GetMetadataValue
("M")); // "Invalid metadata after second removal"
267
Assert.Equal("A", item2.
GetMetadataValue
("M")); // "Invalid metadata after second removal"
287
Assert.Equal("m", item.
GetMetadataValue
("N")); // "Wrong metadata value at startup"
Definition\Project_Tests.cs (3)
1505
project.GetItems("I").First().
GetMetadataValue
("M").ShouldBe(m);
1591
project.GetItems("I").First().
GetMetadataValue
("M").ShouldBe(m);
2045
project.GetItems("i").ElementAt(0).
GetMetadataValue
("m").ShouldBe("m0;m1");
Definition\ProjectItem_Tests.cs (173)
201
Assert.Equal("v0", item.
GetMetadataValue
("m0"));
202
Assert.Equal("v1b", item.
GetMetadataValue
("m1"));
203
Assert.Equal("v2", item.
GetMetadataValue
("m2"));
225
Assert.Equal(String.Empty, item.
GetMetadataValue
("m0"));
301
item.
GetMetadataValue
("FullPath"));
302
Assert.Equal(NativeMethodsShared.IsWindows ? @"c:\" : "/", item.
GetMetadataValue
("RootDir"));
303
Assert.Equal(@"bar", item.
GetMetadataValue
("Filename"));
304
Assert.Equal(@".baz", item.
GetMetadataValue
("Extension"));
305
Assert.Equal(NativeMethodsShared.IsWindows ? @"c:\foo\" : "/foo/", item.
GetMetadataValue
("RelativeDir"));
306
Assert.Equal(NativeMethodsShared.IsWindows ? @"foo\" : "foo/", item.
GetMetadataValue
("Directory"));
307
Assert.Equal(String.Empty, item.
GetMetadataValue
("RecursiveDir"));
310
item.
GetMetadataValue
("Identity"));
330
Assert.Equal(info.LastWriteTime.ToString(fileTimeFormat), item.
GetMetadataValue
("ModifiedTime"));
331
Assert.Equal(info.CreationTime.ToString(fileTimeFormat), item.
GetMetadataValue
("CreatedTime"));
332
Assert.Equal(info.LastAccessTime.ToString(fileTimeFormat), item.
GetMetadataValue
("AccessedTime"));
373
Assert.Equal(NativeMethodsShared.IsWindows ? @"b\" : "b/", item.
GetMetadataValue
("RecursiveDir"));
374
Assert.Equal("c", item.
GetMetadataValue
("Filename"));
420
Assert.Equal(NativeMethodsShared.IsWindows ? @"b\" : "b/", items[1].
GetMetadataValue
("RecursiveDir"));
1204
Assert.Equal("m2", item1.
GetMetadataValue
("m"));
1205
Assert.Equal("m1", item2.
GetMetadataValue
("m"));
1247
Assert.Equal("m1", item1.
GetMetadataValue
("m"));
1248
Assert.Equal("m1", item1b.
GetMetadataValue
("m"));
1249
Assert.Equal("m1", item1c.
GetMetadataValue
("m"));
1250
Assert.Equal("m1", item2.
GetMetadataValue
("m"));
1255
Assert.Equal("m2", item1.
GetMetadataValue
("m"));
1256
Assert.Equal("m2", item1b.
GetMetadataValue
("m"));
1257
Assert.Equal("m2", item1c.
GetMetadataValue
("m"));
1258
Assert.Equal("m2", item2.
GetMetadataValue
("m"));
1297
Assert.Equal("m1", item1.
GetMetadataValue
("m"));
1298
Assert.Equal("m1", item1b.
GetMetadataValue
("m"));
1299
Assert.Equal("m1", item2.
GetMetadataValue
("m"));
1304
Assert.Equal("m2", item1.
GetMetadataValue
("m"));
1305
Assert.Equal("m2", item1b.
GetMetadataValue
("m"));
1306
Assert.Equal("m2", item2.
GetMetadataValue
("m"));
1363
Assert.Equal("l0", project.GetItems("i").First().
GetMetadataValue
("l"));
1364
Assert.Equal("m1", project.GetItems("i").First().
GetMetadataValue
("m"));
1365
Assert.Equal("n1", project.GetItems("i").First().
GetMetadataValue
("n"));
1366
Assert.Equal("", project.GetItems("i").First().
GetMetadataValue
("o"));
1367
Assert.Equal("", project.GetItems("i").First().
GetMetadataValue
("p"));
1369
Assert.Equal("l0", project.GetItems("j").First().
GetMetadataValue
("l"));
1370
Assert.Equal("m1", project.GetItems("j").First().
GetMetadataValue
("m"));
1371
Assert.Equal("n1", project.GetItems("j").First().
GetMetadataValue
("n"));
1372
Assert.Equal("o2", project.GetItems("j").First().
GetMetadataValue
("o"));
1373
Assert.Equal("p2", project.GetItems("j").First().
GetMetadataValue
("p"));
1375
Assert.Equal("l0", project.GetItems("k").First().
GetMetadataValue
("l"));
1376
Assert.Equal("m1", project.GetItems("k").First().
GetMetadataValue
("m"));
1377
Assert.Equal("n1", project.GetItems("k").First().
GetMetadataValue
("n"));
1378
Assert.Equal("o2", project.GetItems("k").First().
GetMetadataValue
("o"));
1379
Assert.Equal("p4", project.GetItems("k").First().
GetMetadataValue
("p"));
1381
Assert.Equal("l0", project.GetItems("l").First().
GetMetadataValue
("l"));
1382
Assert.Equal("m1", project.GetItems("l").First().
GetMetadataValue
("m"));
1383
Assert.Equal("n1", project.GetItems("l").First().
GetMetadataValue
("n"));
1384
Assert.Equal("o2", project.GetItems("l").First().
GetMetadataValue
("o"));
1385
Assert.Equal("p4", project.GetItems("l").First().
GetMetadataValue
("p"));
1387
Assert.Equal("", project.GetItems("l").ElementAt(1).
GetMetadataValue
("l"));
1388
Assert.Equal("", project.GetItems("l").ElementAt(1).
GetMetadataValue
("m"));
1389
Assert.Equal("", project.GetItems("l").ElementAt(1).
GetMetadataValue
("n"));
1390
Assert.Equal("", project.GetItems("l").ElementAt(1).
GetMetadataValue
("o"));
1391
Assert.Equal("", project.GetItems("l").ElementAt(1).
GetMetadataValue
("p"));
1393
Assert.Equal("l0", project.GetItems("m").First().
GetMetadataValue
("l"));
1394
Assert.Equal("m1", project.GetItems("m").First().
GetMetadataValue
("m"));
1395
Assert.Equal("n1", project.GetItems("m").First().
GetMetadataValue
("n"));
1396
Assert.Equal("o4", project.GetItems("m").First().
GetMetadataValue
("o"));
1397
Assert.Equal("p4", project.GetItems("m").First().
GetMetadataValue
("p"));
1399
Assert.Equal("", project.GetItems("m").ElementAt(1).
GetMetadataValue
("l"));
1400
Assert.Equal("", project.GetItems("m").ElementAt(1).
GetMetadataValue
("m"));
1401
Assert.Equal("", project.GetItems("m").ElementAt(1).
GetMetadataValue
("n"));
1402
Assert.Equal("o4", project.GetItems("m").ElementAt(1).
GetMetadataValue
("o"));
1403
Assert.Equal("", project.GetItems("m").ElementAt(1).
GetMetadataValue
("p"));
1461
Assert.Equal("l0", project.GetItems("i").First().
GetMetadataValue
("l"));
1462
Assert.Equal("m1", project.GetItems("i").First().
GetMetadataValue
("m"));
1463
Assert.Equal("n1", project.GetItems("i").First().
GetMetadataValue
("n"));
1464
Assert.Equal("", project.GetItems("i").First().
GetMetadataValue
("o"));
1465
Assert.Equal("", project.GetItems("i").First().
GetMetadataValue
("p"));
1467
Assert.Equal("l0", project.GetItems("j").First().
GetMetadataValue
("l"));
1468
Assert.Equal("m1", project.GetItems("j").First().
GetMetadataValue
("m"));
1469
Assert.Equal("n1", project.GetItems("j").First().
GetMetadataValue
("n"));
1470
Assert.Equal("o2", project.GetItems("j").First().
GetMetadataValue
("o"));
1471
Assert.Equal("p2", project.GetItems("j").First().
GetMetadataValue
("p"));
1473
Assert.Equal("l0", project.GetItems("k").First().
GetMetadataValue
("l"));
1474
Assert.Equal("m1", project.GetItems("k").First().
GetMetadataValue
("m"));
1475
Assert.Equal("n1", project.GetItems("k").First().
GetMetadataValue
("n"));
1476
Assert.Equal("o2", project.GetItems("k").First().
GetMetadataValue
("o"));
1477
Assert.Equal("p4", project.GetItems("k").First().
GetMetadataValue
("p"));
1479
Assert.Equal("l0", project.GetItems("l").First().
GetMetadataValue
("l"));
1480
Assert.Equal("m1", project.GetItems("l").First().
GetMetadataValue
("m"));
1481
Assert.Equal("n1", project.GetItems("l").First().
GetMetadataValue
("n"));
1482
Assert.Equal("o2", project.GetItems("l").First().
GetMetadataValue
("o"));
1483
Assert.Equal("p4", project.GetItems("l").First().
GetMetadataValue
("p"));
1485
Assert.Equal("", project.GetItems("l").ElementAt(1).
GetMetadataValue
("l"));
1486
Assert.Equal("", project.GetItems("l").ElementAt(1).
GetMetadataValue
("m"));
1487
Assert.Equal("", project.GetItems("l").ElementAt(1).
GetMetadataValue
("n"));
1488
Assert.Equal("", project.GetItems("l").ElementAt(1).
GetMetadataValue
("o"));
1489
Assert.Equal("", project.GetItems("l").ElementAt(1).
GetMetadataValue
("p"));
1491
Assert.Equal("l0", project.GetItems("m").First().
GetMetadataValue
("l"));
1492
Assert.Equal("m1", project.GetItems("m").First().
GetMetadataValue
("m"));
1493
Assert.Equal("n1", project.GetItems("m").First().
GetMetadataValue
("n"));
1494
Assert.Equal("o4", project.GetItems("m").First().
GetMetadataValue
("o"));
1495
Assert.Equal("p4", project.GetItems("m").First().
GetMetadataValue
("p"));
1497
Assert.Equal("", project.GetItems("m").ElementAt(1).
GetMetadataValue
("l"));
1498
Assert.Equal("", project.GetItems("m").ElementAt(1).
GetMetadataValue
("m"));
1499
Assert.Equal("", project.GetItems("m").ElementAt(1).
GetMetadataValue
("n"));
1500
Assert.Equal("o4", project.GetItems("m").ElementAt(1).
GetMetadataValue
("o"));
1501
Assert.Equal("", project.GetItems("m").ElementAt(1).
GetMetadataValue
("p"));
1533
Assert.Equal("v1;v2;", item.
GetMetadataValue
("m2"));
1556
Assert.Equal("i1", item.
GetMetadataValue
("m"));
1577
Assert.Equal("i1", item.
GetMetadataValue
("m"));
1598
Assert.Equal(String.Empty, item.
GetMetadataValue
("m"));
1620
Assert.Equal("m1", item.
GetMetadataValue
("m"));
1621
Assert.Equal(String.Empty, item.
GetMetadataValue
("n"));
1661
Assert.Equal(@"i1.obj", items[0].
GetMetadataValue
("m"));
1662
Assert.Equal(@"i2.obj", items[1].
GetMetadataValue
("m"));
1688
Assert.Equal(@"m1", items[0].
GetMetadataValue
("m"));
1689
Assert.Equal(String.Empty, items[1].
GetMetadataValue
("m"));
1713
Assert.Equal(@".x", items[0].
GetMetadataValue
("m"));
1714
Assert.Equal(@".y", items[1].
GetMetadataValue
("m"));
1738
Assert.Equal(@"h0.baz.obj", items[0].
GetMetadataValue
("m"));
1739
Assert.Equal(@"h1.baz.obj", items[1].
GetMetadataValue
("m"));
1763
Assert.Equal(@"i0;h0;h1", items[1].
GetMetadataValue
("m"));
1764
Assert.Equal(@"i0;h0;h1", items[2].
GetMetadataValue
("m"));
1788
Assert.Equal(@"i0.x;h0;h1;.y", items[1].
GetMetadataValue
("m"));
1789
Assert.Equal(@"i0.x;h0;h1;", items[2].
GetMetadataValue
("m"));
1812
Assert.Equal("h0;i0", items[1].
GetMetadataValue
("m1"));
1836
Assert.Equal("v1", items[1].
GetMetadataValue
("m1"));
1837
Assert.Equal(String.Empty, items[1].
GetMetadataValue
("m2"));
1860
Assert.Equal("0", items[0].
GetMetadataValue
("m0"));
1861
Assert.Equal("1", items[0].
GetMetadataValue
("m1"));
1862
Assert.Equal(String.Empty, items[0].
GetMetadataValue
("m2"));
1880
Assert.Equal(String.Empty, item.
GetMetadataValue
("m"));
1901
Assert.Equal("m1", item.
GetMetadataValue
("m")); // Now originating from definition!
1968
Assert.Equal("i1", item.
GetMetadataValue
("FileName"));
1975
Assert.Equal("i2", item.
GetMetadataValue
("FileName"));
2426
items.ElementAt(0).
GetMetadataValue
("M1").ShouldBe("x");
2427
items.ElementAt(0).
GetMetadataValue
("M2").ShouldBe("c");
2428
items.ElementAt(1).
GetMetadataValue
("M1").ShouldBe("y");
2429
items.ElementAt(1).
GetMetadataValue
("M2").ShouldBe("d");
2453
items.ElementAt(0).
GetMetadataValue
("M1").ShouldBe("x");
2454
items.ElementAt(0).
GetMetadataValue
("M2").ShouldBe("c");
2455
items.ElementAt(1).
GetMetadataValue
("M1").ShouldBe("y");
2456
items.ElementAt(1).
GetMetadataValue
("M2").ShouldBe("d");
2487
items.ElementAt(0).
GetMetadataValue
("M1").ShouldBe(@"FOO.TXT");
2488
items.ElementAt(0).
GetMetadataValue
("M2").ShouldBe("c");
2489
items.ElementAt(1).
GetMetadataValue
("M1").ShouldBe("foo/bar.txt");
2490
items.ElementAt(1).
GetMetadataValue
("M2").ShouldBe("x");
2491
items.ElementAt(2).
GetMetadataValue
("M1").ShouldBe(@"/foo/BAR.vb\\/");
2492
items.ElementAt(2).
GetMetadataValue
("M2").ShouldBe("Y");
2493
items.ElementAt(3).
GetMetadataValue
("M1").ShouldBe(@"b\d\c");
2494
items.ElementAt(3).
GetMetadataValue
("M2").ShouldBe("f");
2500
items.ElementAt(0).
GetMetadataValue
("M1").ShouldBe("foo/bar.txt");
2501
items.ElementAt(0).
GetMetadataValue
("M2").ShouldBe("x");
2502
items.ElementAt(1).
GetMetadataValue
("M1").ShouldBe(@"/foo/BAR.vb\\/");
2503
items.ElementAt(1).
GetMetadataValue
("M2").ShouldBe("Y");
2504
items.ElementAt(2).
GetMetadataValue
("M1").ShouldBe(@"b\d\c");
2505
items.ElementAt(2).
GetMetadataValue
("M2").ShouldBe("f");
2562
items.ElementAt(0).
GetMetadataValue
("v0").ShouldBe("x");
2563
items.ElementAt(0).
GetMetadataValue
("M2").ShouldBe("c");
2564
items.ElementAt(1).
GetMetadataValue
("v0").ShouldBe("y");
2565
items.ElementAt(1).
GetMetadataValue
("M2").ShouldBe("d");
2599
items.ElementAt(0).
GetMetadataValue
("v0").ShouldBe("x");
2600
items.ElementAt(0).
GetMetadataValue
("M2").ShouldBe("c");
2601
items.ElementAt(1).
GetMetadataValue
("v0").ShouldBe("3");
2602
items.ElementAt(1).
GetMetadataValue
("M2").ShouldBe("Y");
2603
items.ElementAt(2).
GetMetadataValue
("v0").ShouldBe("y");
2604
items.ElementAt(2).
GetMetadataValue
("M2").ShouldBe("d");
2629
items.ElementAt(0).
GetMetadataValue
("c").ShouldBe("x");
2630
items.ElementAt(1).
GetMetadataValue
("c").ShouldBe("2");
2631
items.ElementAt(2).
GetMetadataValue
("c").ShouldBe("3");
2632
items.ElementAt(3).
GetMetadataValue
("c").ShouldBe("y");
2633
items.ElementAt(0).
GetMetadataValue
("d").ShouldBe("c");
2634
items.ElementAt(1).
GetMetadataValue
("d").ShouldBe("x");
2635
items.ElementAt(2).
GetMetadataValue
("d").ShouldBe("Y");
2636
items.ElementAt(3).
GetMetadataValue
("d").ShouldBe("d");
3363
var lastItemMetadata = items.Last(i => i.ItemType.Equals(itemType) && i.EvaluatedInclude.Equals(itemValue)).
GetMetadataValue
("m");
Definition\ProjectItemDefinition_Tests.cs (7)
70
Assert.Equal("v", Helpers.GetFirst(project.GetItems("i")).
GetMetadataValue
("m"));
249
Assert.Equal("b", item.
GetMetadataValue
("m"));
276
Assert.Equal("b.ext", item.
GetMetadataValue
("m"));
303
Assert.Equal("b.l1", item.
GetMetadataValue
("m"));
334
Assert.Equal("b.n1", item.
GetMetadataValue
("m"));
364
Assert.Equal("%(filename)", item.
GetMetadataValue
("m"));
392
Assert.Equal(".bar", item.
GetMetadataValue
("m"));
Definition\ProjectMetadata_Tests.cs (3)
80
Assert.Equal("v!4", Helpers.GetFirst(project.GetItems("i")).
GetMetadataValue
("m2"));
528
Assert.Equal(";", item.
GetMetadataValue
("EscapedSemicolon"));
532
Assert.Equal("$", item.
GetMetadataValue
("EscapedDollarSign"));
Definition\ProtectImports_Tests.cs (3)
366
Assert.Equal(NewValue, item.
GetMetadataValue
(ProjectMetadataName)); // "Metadata not saved correctly in project."
381
Assert.Equal(NewValue, item.
GetMetadataValue
(newName)); // "Metadata not saved correctly in project."
459
Assert.Equal(NewValue, item.
GetMetadataValue
(OverridableMetadataName)); // "Metadata not set correctly in project."
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (4)
231
var rv = real.
GetMetadataValue
(rm.Name);
232
var vv = view.
GetMetadataValue
(rm.Name);
244
Assert.Equal(real.
GetMetadataValue
("random non existent"), view.
GetMetadataValue
("random non existent"));
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (2)
239
Assert.Equal("xxValue", fooView.
GetMetadataValue
("xx"));
253
Assert.Equal("xxRealValue", fooView.
GetMetadataValue
("xxReal"));
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (1)
30
public string GetMetadataValue(string name) => this.Source.
GetMetadataValue
(name);
Microsoft.Build.Engine.UnitTests (43)
Definition\ItemDefinitionGroup_Tests.cs (37)
1462
Assert.Equal("m1", p.GetItems("j").First().
GetMetadataValue
("m"));
1520
Assert.Equal("im1", p.GetItems("i").First().
GetMetadataValue
("m"));
1521
Assert.Equal("in1", p.GetItems("i").First().
GetMetadataValue
("n"));
1522
Assert.Equal("io2", p.GetItems("i").First().
GetMetadataValue
("o"));
1523
Assert.Equal("ip1", p.GetItems("i").First().
GetMetadataValue
("p"));
1524
Assert.Equal("", p.GetItems("i").First().
GetMetadataValue
("q"));
1526
Assert.Equal("jm3", p.GetItems("j").First().
GetMetadataValue
("m"));
1527
Assert.Equal("jn3", p.GetItems("j").First().
GetMetadataValue
("n"));
1528
Assert.Equal("", p.GetItems("j").First().
GetMetadataValue
("o"));
1529
Assert.Equal("", p.GetItems("j").First().
GetMetadataValue
("p"));
1530
Assert.Equal("jq3", p.GetItems("j").First().
GetMetadataValue
("q"));
1532
Assert.Equal("jm6", p.GetItems("j").ElementAt(1).
GetMetadataValue
("m"));
1533
Assert.Equal("in1", p.GetItems("j").ElementAt(1).
GetMetadataValue
("n"));
1534
Assert.Equal("io2", p.GetItems("j").ElementAt(1).
GetMetadataValue
("o"));
1535
Assert.Equal("ip1", p.GetItems("j").ElementAt(1).
GetMetadataValue
("p"));
1536
Assert.Equal("jq3", p.GetItems("j").ElementAt(1).
GetMetadataValue
("q"));
1538
Assert.Equal("km5", p.GetItems("k").ElementAt(0).
GetMetadataValue
("m"));
1539
Assert.Equal("", p.GetItems("k").ElementAt(0).
GetMetadataValue
("n"));
1540
Assert.Equal("", p.GetItems("k").ElementAt(0).
GetMetadataValue
("o"));
1541
Assert.Equal("", p.GetItems("k").ElementAt(0).
GetMetadataValue
("p"));
1542
Assert.Equal("kq4", p.GetItems("k").ElementAt(0).
GetMetadataValue
("q"));
1543
Assert.Equal("kr4", p.GetItems("k").ElementAt(0).
GetMetadataValue
("r"));
1544
Assert.Equal("", p.GetItems("k").ElementAt(0).
GetMetadataValue
("s"));
1546
Assert.Equal("jm3", p.GetItems("k").ElementAt(1).
GetMetadataValue
("m"));
1547
Assert.Equal("jn3", p.GetItems("k").ElementAt(1).
GetMetadataValue
("n"));
1548
Assert.Equal("", p.GetItems("k").ElementAt(1).
GetMetadataValue
("o"));
1549
Assert.Equal("", p.GetItems("k").ElementAt(1).
GetMetadataValue
("p"));
1550
Assert.Equal("jq3", p.GetItems("k").ElementAt(1).
GetMetadataValue
("q"));
1551
Assert.Equal("kr4", p.GetItems("k").ElementAt(1).
GetMetadataValue
("r"));
1552
Assert.Equal("ks3", p.GetItems("k").ElementAt(1).
GetMetadataValue
("s"));
1554
Assert.Equal("jm6", p.GetItems("k").ElementAt(2).
GetMetadataValue
("m"));
1555
Assert.Equal("in1", p.GetItems("k").ElementAt(2).
GetMetadataValue
("n"));
1556
Assert.Equal("io2", p.GetItems("k").ElementAt(2).
GetMetadataValue
("o"));
1557
Assert.Equal("ip1", p.GetItems("k").ElementAt(2).
GetMetadataValue
("p"));
1558
Assert.Equal("jq3", p.GetItems("k").ElementAt(2).
GetMetadataValue
("q"));
1559
Assert.Equal("kr4", p.GetItems("k").ElementAt(2).
GetMetadataValue
("r"));
1560
Assert.Equal("ks3", p.GetItems("k").ElementAt(1).
GetMetadataValue
("s"));
Definition\ProjectItem_Tests.cs (1)
37
Assert.Equal(String.Empty, item2.
GetMetadataValue
("n"));
EscapingInProjects_Tests.cs (2)
1848
Assert.Equal(";", item.
GetMetadataValue
("EscapedSemicolon"));
1854
Assert.Equal("$", item.
GetMetadataValue
("EscapedDollarSign"));
Evaluation\Evaluator_Tests.cs (3)
2024
Assert.Equal(String.Empty, project.AllEvaluatedItems.ElementAt(0).
GetMetadataValue
("m"));
2026
Assert.Equal("m1", project.AllEvaluatedItems.ElementAt(1).
GetMetadataValue
("m"));
2029
Assert.Equal("m2", project.AllEvaluatedItems.ElementAt(3).
GetMetadataValue
("m"));
Microsoft.Build.UnitTests.Shared (2)
ObjectModelHelpers.cs (2)
220
public string GetMetadataValue(string key) => _projectInstance.
GetMetadataValue
(key);
465
item.
GetMetadataValue
(key).ShouldBe(value);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\ProjectFile.cs (1)
526
item ??= references.First(it => string.Compare(projectName, it.
GetMetadataValue
(MetadataNames.Name), StringComparison.OrdinalIgnoreCase) == 0);
MSBuild (2)
JsonOutputFormatter.cs (2)
98
jsonItem["Identity"] = item.
GetMetadataValue
("Identity");
111
jsonItem[metadatumName] = item.
GetMetadataValue
(metadatumName);