CreateItem.AdditionalMetadata Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A list of metadata name/value pairs to apply to the output items.
A typical input: "metadataname1=metadatavalue1", "metadataname2=metadatavalue2", ...
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
property cli::array <System::String ^> ^ AdditionalMetadata { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public string[] AdditionalMetadata { get; set; }
public string[] AdditionalMetadata { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.AdditionalMetadata : string[] with get, set
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.AdditionalMetadata : string[] with get, set
Public Property AdditionalMetadata As String()
Property Value
Additional metadata to attach to the output items.
- Attributes
Remarks
The fact that this is a string[]
makes the following illegal:
<CreateItem AdditionalMetadata="TargetPath=@(OutputPathItem)" />
The engine fails on this because it doesn't like item lists being concatenated with string
constants when the data is being passed into an array parameter. So the workaround is to
write this in the project file:
<CreateItem AdditionalMetadata="@(OutputPathItem->'TargetPath=%(Identity)')" />