AL.EmbedResources 属性

定义

获取或设置要在包含程序集清单的映像中嵌入的资源。Gets or sets the resources to embed in the image that contains the assembly manifest.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 property cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ EmbedResources { cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ get(); void set(cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ value); };
public Microsoft.Build.Framework.ITaskItem[] EmbedResources { get; set; }
member this.EmbedResources : Microsoft.Build.Framework.ITaskItem[] with get, set
Public Property EmbedResources As ITaskItem()

属性值

ITaskItem[]

要在包含程序集清单的映像中嵌入的资源。The resources to embed in the image that contains the assembly manifest.

注解

此任务将资源文件的内容复制到映像。This task copies the contents of the resource file into the image. 此属性中设置的项可能具有附加到它们的可选元数据,这些元数据称为 LogicalNameAccessThe items set in this property may have optional metadata attached to them called LogicalName and Access. LogicalName 元数据用于指定资源的内部标识符。The LogicalName metadata is used to specify the internal identifier for the resource. Access 元数据可以设置为 private,以使该资源对其他程序集不可见。The Access metadata can be set to private in order to make the resource not visible to other assemblies. 有关详细信息,请参阅 Al.exe(程序集链接器)/embed[resource] 选项的文档。For more information, see the documentation for the /embed[resource] option in Al.exe (Assembly Linker).

适用于