2 implementations of GetMetadata
Microsoft.Build.Framework (1)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
515 references to GetMetadata
Crossgen2Tasks (31)
ILLink.Tasks (10)
installer.tasks (9)
Microsoft.AspNetCore.Mvc.Testing.Tasks (2)
Microsoft.Build.Framework (1)
Microsoft.Build.Tasks.CodeAnalysis (14)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (14)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (26)
MapSourceRootTests.cs (25)
20$" SourceControl='{sourceRoot.GetMetadata("SourceControl")}'" +
21$" RevisionId='{sourceRoot.GetMetadata("RevisionId")}'" +
22$" NestedRoot='{sourceRoot.GetMetadata("NestedRoot")}'" +
23$" ContainingRoot='{sourceRoot.GetMetadata("ContainingRoot")}'" +
24$" MappedPath='{sourceRoot.GetMetadata("MappedPath")}'" +
25$" SourceLinkUrl='{sourceRoot.GetMetadata("SourceLinkUrl")}'";
61Assert.Equal(@"/_1/", task.MappedSourceRoots[0].GetMetadata("MappedPath"));
64Assert.Equal(@"/_2/", task.MappedSourceRoots[1].GetMetadata("MappedPath"));
67Assert.Equal(@"/_/", task.MappedSourceRoots[2].GetMetadata("MappedPath"));
68Assert.Equal(@"Git", task.MappedSourceRoots[2].GetMetadata("SourceControl"));
71Assert.Equal(@"/_/a/b/", task.MappedSourceRoots[3].GetMetadata("MappedPath"));
72Assert.Equal(@"Git", task.MappedSourceRoots[3].GetMetadata("SourceControl"));
73Assert.Equal(@"some value", task.MappedSourceRoots[3].GetMetadata("some metadata"));
110Assert.Equal(@"/_1/", task.MappedSourceRoots[0].GetMetadata("MappedPath"));
113Assert.Equal(@"/_/", task.MappedSourceRoots[1].GetMetadata("MappedPath"));
114Assert.Equal(@"Git", task.MappedSourceRoots[1].GetMetadata("SourceControl"));
117Assert.Equal(@"/_/|||:;/", task.MappedSourceRoots[2].GetMetadata("MappedPath"));
118Assert.Equal(@"Git", task.MappedSourceRoots[2].GetMetadata("SourceControl"));
187Assert.Equal(@"/_/", task.MappedSourceRoots[0].GetMetadata("MappedPath"));
190Assert.Equal(@"/_/a/a/", task.MappedSourceRoots[1].GetMetadata("MappedPath"));
193Assert.Equal(@"/_/a/b/", task.MappedSourceRoots[2].GetMetadata("MappedPath"));
196Assert.Equal(@"/_/a/c/", task.MappedSourceRoots[3].GetMetadata("MappedPath"));
225Assert.Equal(@"/_/", task.MappedSourceRoots[0].GetMetadata("MappedPath"));
228Assert.Equal(@"/_1/", task.MappedSourceRoots[1].GetMetadata("MappedPath"));
231Assert.Equal(@"/_2/", task.MappedSourceRoots[2].GetMetadata("MappedPath"));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
Microsoft.DotNet.Arcade.Sdk (6)
Microsoft.DotNet.Arcade.Sdk.Tests (3)
Microsoft.DotNet.Build.Manifest (13)
Microsoft.DotNet.Build.Tasks.Feed (9)
Microsoft.DotNet.Build.Tasks.Installers (13)
src\GenerateMacOSDistributionFile.cs (6)
66new XAttribute("id", component.GetMetadata("FileNameWithExtension")),
68new XAttribute("title", component.GetMetadata("Title")),
69new XAttribute("description", component.GetMetadata("Description")),
70new XElement("pkg-ref", new XAttribute("id", component.GetMetadata("FileNameWithExtension")))));
91new XAttribute("id", component.GetMetadata("FileNameWithExtension")),
92component.GetMetadata("FileNameWithExtension")));
Microsoft.DotNet.Build.Tasks.Packaging (85)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (42)
CreateTrimDependencyGroupsTests.cs (26)
143item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("win8")).Should().HaveCount(1),
144item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("monoandroid10")).Should().HaveCount(1),
145item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("monotouch10")).Should().HaveCount(1),
146item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("net45")).Should().HaveCount(1),
147item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("wp8")).Should().HaveCount(1),
148item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("wpa81")).Should().HaveCount(1),
149item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinios10")).Should().HaveCount(1),
150item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarintvos10")).Should().HaveCount(1),
151item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinwatchos10")).Should().HaveCount(1),
152item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinmac20")).Should().HaveCount(1),
153item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("portable45-net45+win8+wp8+wpa81")).Should().HaveCount(1)
230task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("net45") &&
236task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("net451") &&
242task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("portable45-net45+win8+wp8+wpa81") &&
248task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("portable46-net451+win81+wpa81") &&
356var actualTFMs = task.TrimmedDependencies.Select(d => d.GetMetadata("TargetFramework"));
393item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("win8")).Should().HaveCount(1),
394item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("monoandroid10")).Should().HaveCount(1),
395item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("monotouch10")).Should().HaveCount(1),
396item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("net45")).Should().HaveCount(1),
397item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("wpa81")).Should().HaveCount(1),
398item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinios10")).Should().HaveCount(1),
399item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarintvos10")).Should().HaveCount(1),
400item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinwatchos10")).Should().HaveCount(1),
401item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("xamarinmac20")).Should().HaveCount(1),
402item => task.TrimmedDependencies.Where(f => f.GetMetadata("TargetFramework").Equals("portable45-net45+win8+wpa81")).Should().HaveCount(1)
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (2)
Microsoft.DotNet.Build.Tasks.Workloads (29)
CreateVisualStudioWorkload.wix.cs (9)
359if (_supportsMachineArch[sdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64))
362new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, sdkFeatureBand, chip: null, machineArch: msiOutputItem.GetMetadata(Metadata.Platform), outOfSupport: IsOutOfSupportInVisualStudio) :
363new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, sdkFeatureBand, chip: msiOutputItem.GetMetadata(Metadata.Platform), outOfSupport: IsOutOfSupportInVisualStudio);
408if (_supportsMachineArch[manifestPackage.SdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64))
411new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, manifestPackage.SdkFeatureBand, chip: null, machineArch: msiOutputItem.GetMetadata(Metadata.Platform), outOfSupport: IsOutOfSupportInVisualStudio) :
412new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, manifestPackage.SdkFeatureBand, chip: msiOutputItem.GetMetadata(Metadata.Platform), outOfSupport: IsOutOfSupportInVisualStudio);
437if (_supportsMachineArch[msi.Package.SdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64))
442new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, msi.Package.SdkFeatureBand, chip: null, machineArch: msiOutputItem.GetMetadata(Metadata.Platform)) :
443new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, msi.Package.SdkFeatureBand, chip: msiOutputItem.GetMetadata(Metadata.Platform));
Microsoft.DotNet.Build.Tasks.Workloads.Tests (19)
Microsoft.DotNet.Deployment.Tasks.Links (2)
Microsoft.DotNet.GenAPI (1)
Microsoft.DotNet.GenFacades (2)
Microsoft.DotNet.Helix.Sdk (30)
Microsoft.DotNet.Helix.Sdk.Tests (48)
Microsoft.DotNet.PackageTesting (3)
Microsoft.DotNet.SharedFramework.Sdk (22)
Microsoft.DotNet.SignTool (14)
Microsoft.DotNet.SourceBuild.Tasks (8)
Microsoft.DotNet.XliffTasks (12)
Microsoft.Extensions.ApiDescription.Client (6)
Microsoft.Extensions.ApiDescription.Client.Tests (2)
Microsoft.Maui.Resizetizer (11)
Microsoft.NETCore.Platforms (1)
PresentationBuildTasks (18)