Compartilhar via


CreateItem.AdditionalMetadata Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets additional metadata to attach to the output items.

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.

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Property AdditionalMetadata As String()
public string[] AdditionalMetadata { get; set; }
public:
property array<String^>^ AdditionalMetadata {
    array<String^>^ get ();
    void set (array<String^>^ value);
}
member AdditionalMetadata : string[] with get, set
function get AdditionalMetadata () : String[]
function set AdditionalMetadata (value : String[])

Property Value

Type: array<System.String[]
Additional metadata to attach to the output items.

Remarks

Specify the metadata name and value for the item with the following syntax: MetadataName=MetadataValue. Multiple metadata name/value pairs should be separated with a semicolon. If either the name or the value contains a semicolon or any other special characters, they must be escaped. For more information, see How To: Escape Special Characters in MSBuild.

.NET Framework Security

See Also

Reference

CreateItem Class

Microsoft.Build.Tasks Namespace