Delen via


AL.LinkResources Property

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

Gets or sets the resource files to link to an assembly.

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

Property Value

Type: array<Microsoft.Build.Framework.ITaskItem[]
The resource files to link to an assembly.

Remarks

The resource becomes part of the assembly, but the file is not copied. The items passed in to this parameter may have optional metadata attached to them called LogicalName, Target, and Access. The LogicalName metadata is used to specify the internal identifier for the resource. The Target metadata can specify the path and filename to which the task copies the file, after which it compiles this new file into the assembly. The Access metadata can be set to private in order to make the resource not visible to other assemblies. For more information, see the documentation for the /link[resource] option in Assembly Linker (Al.exe).

.NET Framework Security

See Also

Reference

AL Class

Microsoft.Build.Tasks Namespace