Implemented interface member:
method
GetMetadataValue
Microsoft.Build.Evaluation.IItem.GetMetadataValue(System.String)
16 references to GetMetadataValue
dotnet (1)
CommandFactory\CommandResolution\MSBuildProject.cs (1)
139var tools = toolsReferences.Select(t => new SingleProjectInfo(t.EvaluatedInclude, t.GetMetadataValue("Version"), []));
dotnet-openapi (3)
Commands\BaseCommand.cs (1)
167i => string.Equals(i.GetMetadataValue(SourceUrlAttrName), sourceUrl, StringComparison.Ordinal)))
Commands\RefreshCommand.cs (1)
46var attrUrl = item.GetMetadataValue(SourceUrlAttrName);
Commands\RemoveCommand.cs (1)
59var sourceUrl = item.HasMetadata(SourceUrlAttrName) ? item.GetMetadataValue(SourceUrlAttrName) : null;
Microsoft.Build (9)
Construction\Solution\SolutionProjectGenerator.cs (1)
2227string referencedProjectGuid = reference.GetMetadataValue("Project");
Definition\ProjectItem.cs (2)
284/// Get the values of built-in metadata using <see cref="GetMetadataValue(string)"/>. 471/// See <see cref="GetMetadataValue(string)">GetMetadataValue</see> for a more detailed explanation.
Instance\ImmutableProjectCollections\ImmutableProjectMetadataCollectionConverter.cs (5)
54return EscapingUtilities.Escape(_linkedProjectItem.GetMetadataValue(key)); 69value = EscapingUtilities.Escape(_linkedProjectItem.GetMetadataValue(key)); 83EscapingUtilities.Escape(_linkedProjectItem.GetMetadataValue(name))); 94public string GetExtendedPropertyValue(string name) => _linkedProjectItem.GetMetadataValue(name); 106kvp => EscapingUtilities.Escape(_linkedProjectItem.GetMetadataValue(kvp.Key)),
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemLink.cs (1)
52/// Facilitate remoting the <see cref="ProjectItem.GetMetadataValue"/>.
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\ProjectFile.cs (1)
219item ??= references.First(it => string.Compare(projectName, it.GetMetadataValue(MetadataNames.Name), StringComparison.OrdinalIgnoreCase) == 0);
MSBuild (2)
JsonOutputFormatter.cs (2)
98jsonItem["Identity"] = item.GetMetadataValue("Identity"); 210return item.GetMetadataValue(metadataName);