Share via


AL.EmbedResources Property

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

Gets or sets the resources to embed in the image that contains the assembly manifest.

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

Property Value

Type: array<Microsoft.Build.Framework.ITaskItem[]
The resources to embed in the image that contains the assembly manifest.

Remarks

This task copies the contents of the resource file into the image. The items set in this property may have optional metadata attached to them called LogicalName and Access. The LogicalName metadata is used to specify the internal identifier for the resource. 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 /embed[resource] option in Assembly Linker (Al.exe).

.NET Framework Security

See Also

Reference

AL Class

Microsoft.Build.Tasks Namespace