Condividi tramite


WriteCodeFragment.AssemblyAttributes Property

Gets or sets the attributes to write.

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 AssemblyAttributes As ITaskItem()
public ITaskItem[] AssemblyAttributes { get; set; }
public:
property array<ITaskItem^>^ AssemblyAttributes {
    array<ITaskItem^>^ get ();
    void set (array<ITaskItem^>^ value);
}
member AssemblyAttributes : ITaskItem[] with get, set
function get AssemblyAttributes () : ITaskItem[]
function set AssemblyAttributes (value : ITaskItem[])

Property Value

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

Remarks

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 Security

See Also

Reference

WriteCodeFragment Class

Microsoft.Build.Tasks Namespace