ProjectItem.GetMetadataValue Method (String)
Get the evaluated value of the given metadata for this item, including metadata originating from an item definition.
MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Assembly: Microsoft.Build (in Microsoft.Build.dll)
The name of the metadata whose value is retrieved.
Return ValueType: System.String
Returns the evaluated value of the given metadata for this item, including metadata originating from an item definition. Returns an empty string if no metadata exists with the given name.
To determine whether metadata exist, whether it has a value or not, use HasMetadata.
This method may be used to access the value of built-in metadata, such as "FullPath".