Export (0) Print
Expand All

WriteCodeFragment.AssemblyAttributes Property

Gets or sets the attributes to write.

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.v4.0 (in Microsoft.Build.Tasks.v4.0.dll)

public ITaskItem[] AssemblyAttributes { get; set; }

Property Value

Type: Microsoft.Build.Framework.ITaskItem[]
Returns an item whose value is the full type name of he attribute, for example, "System.AssemblyVersionAttribute".

Each piece of metadata is the name-value pair of a parameter, which must be of type System.String.

Some attributes only allow positional constructor arguments, or the user may just prefer them. To set those, use metadata names like "_Parameter1", "_Parameter2" etc. If a parameter index is skipped, it's an error.

.NET Framework

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft