Implemented interface member:
method
GetMetadataValue
Microsoft.Build.Evaluation.IItem.GetMetadataValue(System.String)
273 references to GetMetadataValue
Microsoft.Build (19)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
629
return group.Where(item => metadataSet.Contains(matchOnMetadata.Select(m => item.
GetMetadataValue
(m)))).ToList();
Graph\GraphBuilder.cs (2)
668
string existingTargetsMetadata = existingItem.
GetMetadataValue
(ItemMetadataNames.ProjectReferenceTargetsMetadataName);
669
string newTargetsMetadata = newItem.
GetMetadataValue
(ItemMetadataNames.ProjectReferenceTargetsMetadataName);
Graph\ProjectGraph.cs (1)
814
var targetsString = graphEdge.
GetMetadataValue
(ItemMetadataNames.ProjectReferenceTargetsMetadataName);
Graph\ProjectInterpretation.cs (14)
110
if (!String.IsNullOrEmpty(projectReferenceItem.
GetMetadataValue
(ToolsVersionMetadataName)))
121
string projectReferenceFullPath = projectReferenceItem.
GetMetadataValue
(FullPathMetadataName);
137
string projectGuid = projectReferenceItem.
GetMetadataValue
(ProjectMetadataName);
185
string overridePlatformNegotiationMetadataValue = projectReferenceItem.
GetMetadataValue
(OverridePlatformNegotiationValue);
313
var globalPropertiesToRemove = SplitPropertyNames(projectReference.
GetMetadataValue
(GlobalPropertiesToRemoveMetadataName));
328
var setConfigurationString = projectReference.
GetMetadataValue
(SetConfigurationMetadataName);
329
var setPlatformString = projectReference.
GetMetadataValue
(SetPlatformMetadataName);
330
var setTargetFrameworkString = projectReference.
GetMetadataValue
(SetTargetFrameworkMetadataName);
388
var properties = SplitPropertyNameValuePairs(ItemMetadataNames.PropertiesMetadataName, projectReference.
GetMetadataValue
(ItemMetadataNames.PropertiesMetadataName));
389
var additionalProperties = SplitPropertyNameValuePairs(ItemMetadataNames.AdditionalPropertiesMetadataName, projectReference.
GetMetadataValue
(ItemMetadataNames.AdditionalPropertiesMetadataName));
390
var undefineProperties = SplitPropertyNames(projectReference.
GetMetadataValue
(ItemMetadataNames.UndefinePropertiesMetadataName));
505
string targetsMetadataValue = projectReferenceTarget.
GetMetadataValue
(ItemMetadataNames.ProjectReferenceTargetsMetadataName);
506
bool skipNonexistentTargets = MSBuildStringIsTrue(projectReferenceTarget.
GetMetadataValue
("SkipNonexistentTargets"));
507
bool targetsAreForOuterBuild = MSBuildStringIsTrue(projectReferenceTarget.
GetMetadataValue
(ProjectReferenceTargetIsOuterBuildMetadataName));
Instance\ProjectItemInstance.cs (1)
470
return
GetMetadataValue
(metadataName);
Microsoft.Build.Engine.OM.UnitTests (60)
Definition\DefinitionEditing_Tests.cs (2)
1884
Assert.Equal("m1", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].
GetMetadataValue
("m"));
1912
Assert.Equal("m1$$", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].
GetMetadataValue
("m"));
Definition\ProjectItemDefinition_Tests.cs (2)
460
Assert.Equal("n1", item1.
GetMetadataValue
("n"));
463
Assert.Equal("", item2.
GetMetadataValue
("n"));
Instance\ProjectInstance_Tests.cs (15)
70
Assert.Equal(String.Empty, items[0].
GetMetadataValue
("m"));
73
Assert.Equal("m1", items[1].
GetMetadataValue
("m"));
143
Assert.Equal("m1", item.
GetMetadataValue
("m"));
144
Assert.Equal("n1", item.
GetMetadataValue
("n"));
145
Assert.Equal("o@", item.
GetMetadataValue
("o"));
267
Assert.Equal("m1", Helpers.MakeList(project.GetItems("j"))[0].
GetMetadataValue
("m"));
268
Assert.Equal("n;;", Helpers.MakeList(project.GetItems("j"))[0].
GetMetadataValue
("n"));
431
Assert.Equal(projB.FullPath, projBInstanceItem.
GetMetadataValue
(CapturedMetadataName));
432
Assert.Equal(projA.FullPath, projAInstanceItem.
GetMetadataValue
(CapturedMetadataName));
438
Assert.NotNull(projAInstanceItem.
GetMetadataValue
("Identity"));
473
Assert.Equal(projB.FullPath, projBInstanceItem.
GetMetadataValue
(CapturedMetadataName));
474
Assert.Equal(projA.FullPath, projAInstanceItem.
GetMetadataValue
(CapturedMetadataName));
480
Assert.NotNull(projAInstanceItem.
GetMetadataValue
("Identity"));
515
Assert.Equal(projA.FullPath, projAInstanceItem.
GetMetadataValue
(CapturedMetadataName));
516
Assert.Equal(projB.FullPath, projBInstanceItem.
GetMetadataValue
(CapturedMetadataName));
Instance\ProjectItemInstance_Tests.cs (41)
102
Assert.Equal("v1", item.
GetMetadataValue
("m1"));
103
Assert.Equal("v2", item.
GetMetadataValue
("m2"));
122
Assert.Equal("v1", item.
GetMetadataValue
("m1"));
123
Assert.Equal("v2", item.
GetMetadataValue
("m2"));
144
Assert.Equal("v1", item.
GetMetadataValue
("m1"));
145
Assert.Equal("v2", item.
GetMetadataValue
("m2"));
146
Assert.Equal("v3", item.
GetMetadataValue
("m3"));
157
Assert.Equal(String.Empty, item.
GetMetadataValue
("X"));
258
Assert.Equal(String.Empty, item.
GetMetadataValue
("m"));
269
Assert.Equal("m1", item.
GetMetadataValue
("m"));
280
Assert.Equal(String.Empty, item.
GetMetadataValue
("m"));
292
Assert.Equal(String.Empty, item.
GetMetadataValue
("m"));
335
Assert.Equal("m2", item.
GetMetadataValue
("m"));
553
Assert.Equal("v0", item.
GetMetadataValue
("m0"));
554
Assert.Equal("v1b", item.
GetMetadataValue
("m1"));
555
Assert.Equal("v2", item.
GetMetadataValue
("m2"));
638
Assert.Equal("v1;v2;", item.
GetMetadataValue
("m2"));
661
Assert.Equal("i1", item.
GetMetadataValue
("m"));
682
Assert.Equal("i1", item.
GetMetadataValue
("m"));
703
Assert.Equal(String.Empty, item.
GetMetadataValue
("m"));
725
Assert.Equal("m1", item.
GetMetadataValue
("m"));
726
Assert.Equal(String.Empty, item.
GetMetadataValue
("n"));
766
Assert.Equal(@"i1.obj", items[0].
GetMetadataValue
("m"));
767
Assert.Equal(@"i2.obj", items[1].
GetMetadataValue
("m"));
793
Assert.Equal(@"m1", items[0].
GetMetadataValue
("m"));
794
Assert.Equal(String.Empty, items[1].
GetMetadataValue
("m"));
818
Assert.Equal(@".x", items[0].
GetMetadataValue
("m"));
819
Assert.Equal(@".y", items[1].
GetMetadataValue
("m"));
843
Assert.Equal(@"h0.baz.obj", items[0].
GetMetadataValue
("m"));
844
Assert.Equal(@"h1.baz.obj", items[1].
GetMetadataValue
("m"));
868
Assert.Equal(@"i0;h0;h1", items[1].
GetMetadataValue
("m"));
869
Assert.Equal(@"i0;h0;h1", items[2].
GetMetadataValue
("m"));
893
Assert.Equal(@"i0.x;h0;h1;.y", items[1].
GetMetadataValue
("m"));
894
Assert.Equal(@"i0.x;h0;h1;", items[2].
GetMetadataValue
("m"));
917
Assert.Equal("h0;i0", items[1].
GetMetadataValue
("m1"));
941
Assert.Equal("v1", items[1].
GetMetadataValue
("m1"));
942
Assert.Equal(String.Empty, items[1].
GetMetadataValue
("m2"));
965
Assert.Equal("0", items[0].
GetMetadataValue
("m0"));
966
Assert.Equal("1", items[0].
GetMetadataValue
("m1"));
967
Assert.Equal(String.Empty, items[0].
GetMetadataValue
("m2"));
1205
Assert.Equal(expected[key], item.
GetMetadataValue
(key));
Microsoft.Build.Engine.UnitTests (185)
BackEnd\BuildManager_Tests.cs (3)
533
result.ProjectStateAfterBuild.GetItems("ItemWithMetadata").First().
GetMetadataValue
("Metadatum1")
535
result.ProjectStateAfterBuild.GetItems("ItemWithMetadata").First().
GetMetadataValue
("Metadatum2")
544
.
GetMetadataValue
("UnexpectedMetadatum").ShouldBe("Unexpected");
BackEnd\IntrinsicTask_Tests.cs (94)
447
Assert.Equal("m1", group.First().
GetMetadataValue
("m1"));
471
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
472
Assert.Equal("m2", group.First().
GetMetadataValue
("m2"));
473
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m3"));
498
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
499
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
500
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m3"));
524
Assert.Equal("m1", group.First().
GetMetadataValue
("m1"));
525
Assert.Equal("m2", group.First().
GetMetadataValue
("m2"));
526
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m3"));
553
Assert.Equal("m1", group.First().
GetMetadataValue
("m1"));
554
Assert.Equal("m2", group.First().
GetMetadataValue
("m2"));
555
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m3"));
577
Assert.Equal("m1", group.First().
GetMetadataValue
("m1"));
601
Assert.Equal("m1", group.First().
GetMetadataValue
("m1"));
602
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
603
Assert.Equal("m3", group.First().
GetMetadataValue
("m3"));
627
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
628
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
629
Assert.Equal("m3", group.First().
GetMetadataValue
("m3"));
656
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
657
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
658
Assert.Equal("m3", group.First().
GetMetadataValue
("m3"));
727
Assert.Equal("m1", i1Group.First().
GetMetadataValue
("m"));
848
Assert.Equal("a.obj", i2Group.First().
GetMetadataValue
("m"));
1037
Assert.Equal("m1", i1Group.First().
GetMetadataValue
("m"));
1038
Assert.Equal("m2", i1Group.ElementAt(1).
GetMetadataValue
("m"));
1069
Assert.Equal("n1", i2Group.First().
GetMetadataValue
("n"));
1070
Assert.Equal(String.Empty, i2Group.ElementAt(1).
GetMetadataValue
("n"));
1126
Assert.Equal("m1", i1Group.First().
GetMetadataValue
("m"));
1127
Assert.Equal("m2", i1Group.ElementAt(1).
GetMetadataValue
("m"));
1128
Assert.Equal("m3", i1Group.ElementAt(2).
GetMetadataValue
("m"));
1781
items.ElementAt(0).
GetMetadataValue
("M1").ShouldBe("x");
1782
items.ElementAt(0).
GetMetadataValue
("M2").ShouldBe("c");
1783
items.ElementAt(1).
GetMetadataValue
("M1").ShouldBe("y");
1784
items.ElementAt(1).
GetMetadataValue
("M2").ShouldBe("d");
1815
items.ElementAt(0).
GetMetadataValue
("M1").ShouldBe("x");
1816
items.ElementAt(0).
GetMetadataValue
("M2").ShouldBe("c");
1817
items.ElementAt(1).
GetMetadataValue
("M1").ShouldBe("y");
1818
items.ElementAt(1).
GetMetadataValue
("M2").ShouldBe("d");
1859
items.ElementAt(0).
GetMetadataValue
("M1").ShouldBe(@"FOO.TXT");
1860
items.ElementAt(0).
GetMetadataValue
("M2").ShouldBe("c");
1861
items.ElementAt(1).
GetMetadataValue
("M1").ShouldBe("foo/bar.txt");
1862
items.ElementAt(1).
GetMetadataValue
("M2").ShouldBe("x");
1863
items.ElementAt(2).
GetMetadataValue
("M1").ShouldBe(@"/foo/BAR.vb\\/");
1864
items.ElementAt(2).
GetMetadataValue
("M2").ShouldBe("Y");
1865
items.ElementAt(3).
GetMetadataValue
("M1").ShouldBe(@"b\d\c");
1866
items.ElementAt(3).
GetMetadataValue
("M2").ShouldBe("f");
1872
items.ElementAt(0).
GetMetadataValue
("M1").ShouldBe("foo/bar.txt");
1873
items.ElementAt(0).
GetMetadataValue
("M2").ShouldBe("x");
1874
items.ElementAt(1).
GetMetadataValue
("M1").ShouldBe(@"/foo/BAR.vb\\/");
1875
items.ElementAt(1).
GetMetadataValue
("M2").ShouldBe("Y");
1876
items.ElementAt(2).
GetMetadataValue
("M1").ShouldBe(@"b\d\c");
1877
items.ElementAt(2).
GetMetadataValue
("M2").ShouldBe("f");
1946
items.ElementAt(0).
GetMetadataValue
("v0").ShouldBe("x");
1947
items.ElementAt(0).
GetMetadataValue
("M2").ShouldBe("c");
1948
items.ElementAt(1).
GetMetadataValue
("v0").ShouldBe("y");
1949
items.ElementAt(1).
GetMetadataValue
("M2").ShouldBe("d");
1984
items.ElementAt(0).
GetMetadataValue
("v0").ShouldBe("x");
1985
items.ElementAt(0).
GetMetadataValue
("M2").ShouldBe("c");
1986
items.ElementAt(1).
GetMetadataValue
("v0").ShouldBe("3");
1987
items.ElementAt(1).
GetMetadataValue
("M2").ShouldBe("Y");
1988
items.ElementAt(2).
GetMetadataValue
("v0").ShouldBe("y");
1989
items.ElementAt(2).
GetMetadataValue
("M2").ShouldBe("d");
2020
items.ElementAt(0).
GetMetadataValue
("c").ShouldBe("x");
2021
items.ElementAt(1).
GetMetadataValue
("c").ShouldBe("2");
2022
items.ElementAt(2).
GetMetadataValue
("c").ShouldBe("3");
2023
items.ElementAt(3).
GetMetadataValue
("c").ShouldBe("y");
2024
items.ElementAt(0).
GetMetadataValue
("d").ShouldBe("c");
2025
items.ElementAt(1).
GetMetadataValue
("d").ShouldBe("x");
2026
items.ElementAt(2).
GetMetadataValue
("d").ShouldBe("Y");
2027
items.ElementAt(3).
GetMetadataValue
("d").ShouldBe("d");
2416
Assert.Equal("m1", p.ItemsToBuildWith["i0"].First().
GetMetadataValue
("m"));
2857
Assert.Equal("m2", item.
GetMetadataValue
("m"));
2915
Assert.Equal("m3", item.
GetMetadataValue
("m"));
2969
Assert.Equal("m1", item1.
GetMetadataValue
("m"));
2970
Assert.Equal("m3", item2.
GetMetadataValue
("m"));
2999
Assert.Equal("m1", item1.
GetMetadataValue
("m"));
3000
Assert.Equal("m3", item2.
GetMetadataValue
("m"));
3048
Assert.Equal("m1", item1.
GetMetadataValue
("m"));
3049
Assert.Equal("m3", item2.
GetMetadataValue
("m"));
3079
Assert.Equal("m1", item1.
GetMetadataValue
("m"));
3080
Assert.Equal("m3", item2.
GetMetadataValue
("m"));
3120
Assert.Equal("m4", item.
GetMetadataValue
("m"));
3206
Assert.Equal("m1", item.
GetMetadataValue
("m"));
3210
Assert.Equal("m0", item.
GetMetadataValue
("m"));
3253
Assert.Equal("m0", p.ItemsToBuildWith["i0"].First().
GetMetadataValue
("m"));
3254
Assert.Equal("n0", p.ItemsToBuildWith["i0"].First().
GetMetadataValue
("n"));
3255
Assert.Equal("m1", p.ItemsToBuildWith["i1"].First().
GetMetadataValue
("m"));
3256
Assert.Equal("n1", p.ItemsToBuildWith["i1"].First().
GetMetadataValue
("n"));
3261
Assert.Equal("m0", p.ItemsToBuildWith["i0"].First().
GetMetadataValue
("m"));
3262
Assert.Equal("n0", p.ItemsToBuildWith["i0"].First().
GetMetadataValue
("n"));
3546
Assert.Equal("gen.obj", instance.GetItems("CppCompile").First().
GetMetadataValue
("ObjectFile"));
3547
Assert.Equal("def.obj", instance.GetItems("CppCompile").Last().
GetMetadataValue
("ObjectFile"));
BackEnd\Lookup_Tests.cs (86)
423
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
424
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
438
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
439
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
442
Assert.Equal("m3", group.First().
GetMetadataValue
("m3"));
450
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
451
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
454
Assert.Equal("m3", group.First().
GetMetadataValue
("m3"));
488
Assert.Equal("m1", group.First().
GetMetadataValue
("m1"));
489
Assert.Equal("m2", group.First().
GetMetadataValue
("m2"));
490
Assert.Equal("m3", group.First().
GetMetadataValue
("m3"));
503
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
504
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
505
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m3"));
513
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
514
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
515
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m3"));
548
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
549
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
552
Assert.Equal("m3", group.First().
GetMetadataValue
("m3"));
566
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
567
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
568
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m3"));
571
Assert.Equal("m4", group.First().
GetMetadataValue
("m4"));
579
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
580
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
581
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m3"));
584
Assert.Equal("m4", group.First().
GetMetadataValue
("m4"));
619
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
620
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
623
Assert.Equal("m3", group.First().
GetMetadataValue
("m3"));
637
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
638
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
641
Assert.Equal("m3", group.First().
GetMetadataValue
("m3"));
649
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
650
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
653
Assert.Equal("m3", group.First().
GetMetadataValue
("m3"));
686
Assert.Equal("m1", group.First().
GetMetadataValue
("m1"));
689
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
697
Assert.Equal("m1", group.First().
GetMetadataValue
("m1"));
700
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
708
Assert.Equal("m1", group.First().
GetMetadataValue
("m1"));
711
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
740
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
741
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
749
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
750
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
758
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m1"));
759
Assert.Equal(String.Empty, group.First().
GetMetadataValue
("m2"));
788
Assert.Equal("m2", group.First().
GetMetadataValue
("m"));
791
Assert.Equal("m1", item1.
GetMetadataValue
("m"));
798
Assert.Equal("m2", group.First().
GetMetadataValue
("m"));
802
Assert.Equal("m1", item1.
GetMetadataValue
("m"));
809
Assert.Equal("m2", group.First().
GetMetadataValue
("m"));
812
Assert.Equal("m2", item1.
GetMetadataValue
("m"));
851
Assert.Equal("m3", group.First().
GetMetadataValue
("m"));
852
Assert.Equal("n2", group.First().
GetMetadataValue
("n"));
853
Assert.Equal("o3", group.First().
GetMetadataValue
("o"));
888
Assert.Equal("m2", group.First().
GetMetadataValue
("m"));
913
Assert.Equal("m1", group.First().
GetMetadataValue
("m"));
914
Assert.Equal("n1", group.First().
GetMetadataValue
("n"));
915
Assert.Equal("o1", group.First().
GetMetadataValue
("o"));
928
Assert.Equal("m2", foundGroup.First().
GetMetadataValue
("m"));
929
Assert.Equal("n2", foundGroup.First().
GetMetadataValue
("n"));
930
Assert.Equal("o1", foundGroup.First().
GetMetadataValue
("o"));
940
Assert.Equal("m2", foundGroup.First().
GetMetadataValue
("m"));
941
Assert.Equal("n3", foundGroup.First().
GetMetadataValue
("n"));
942
Assert.Equal("o1", foundGroup.First().
GetMetadataValue
("o"));
945
Assert.Equal("m1", item1.
GetMetadataValue
("m"));
946
Assert.Equal("n1", item1.
GetMetadataValue
("n"));
947
Assert.Equal("o1", item1.
GetMetadataValue
("o"));
954
Assert.Equal("m2", foundGroup.First().
GetMetadataValue
("m"));
955
Assert.Equal("n3", foundGroup.First().
GetMetadataValue
("n"));
956
Assert.Equal("o1", foundGroup.First().
GetMetadataValue
("o"));
959
Assert.Equal("m2", item1.
GetMetadataValue
("m"));
960
Assert.Equal("n3", item1.
GetMetadataValue
("n"));
961
Assert.Equal("o1", item1.
GetMetadataValue
("o"));
989
Assert.Equal("m2", group.First().
GetMetadataValue
("m"));
992
Assert.Equal("m1", item1.
GetMetadataValue
("m"));
999
Assert.Equal("m2", group.First().
GetMetadataValue
("m"));
1002
Assert.Equal("m2", item1.
GetMetadataValue
("m"));
1058
Assert.Equal("m3", group4.First().
GetMetadataValue
("m"));
1066
Assert.Equal("m3", group5.First().
GetMetadataValue
("m"));
1109
Assert.Equal("m3", group4.First().
GetMetadataValue
("m"));
1117
Assert.Equal("m3", group5.First().
GetMetadataValue
("m"));
1120
Assert.Equal("m3", item1.
GetMetadataValue
("m"));
EscapingInProjects_Tests.cs (1)
654
Assert.Equal(projectAbsolutePath, items.First().
GetMetadataValue
("FullPath"));
Graph\ProjectGraph_Tests.cs (1)
1962
edgeToOuterBuild.
GetMetadataValue
("Foo").ShouldBe("Bar");
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (4)
TargetTests.cs (4)
565
Assert.Equal("Always", noneItems[0].
GetMetadataValue
("CopyToOutputDirectory"));
568
Assert.Equal("PreserveNewest", noneItems[1].
GetMetadataValue
("CopyToOutputDirectory"));
571
Assert.Equal("Never", noneItems[2].
GetMetadataValue
("CopyToOutputDirectory"));
846
Assert.Equal("ImplicitBuild", item.
GetMetadataValue
("Kind"));
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
239
public string GetMetadataValue(string key) => _projectInstance.
GetMetadataValue
(key);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
MSBuild\ProjectFile\Extensions.cs (1)
44
var versionRangeValue = item.
GetMetadataValue
(MetadataNames.Version);
MSBuild\ProjectFile\ProjectFile.cs (1)
218
.SelectAsArray(item => item.
GetMetadataValue
(MetadataNames.FullPath));
MSBuild (2)
JsonOutputFormatter.cs (2)
62
jsonItem["Identity"] = item.
GetMetadataValue
("Identity");
70
jsonItem[metadatumName] = item.
GetMetadataValue
(metadatumName);