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.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft