gpt4 book ai didi

c# - 使用程序集链接器将资源文件链接到现有的 .NET 程序集

转载 作者:太空狗 更新时间:2023-10-29 23:16:00 25 4
gpt4 key购买 nike

我正在尝试使用 AL 将文件 name.ext 链接到 assembly.dll (汇编链接器)模仿 C++ 中使用 /ASSEMBLYLINKRESOURCE 可以完成的工作选项。

我使用的语法如下:

al.exe assembly.dll /link:name.ext

我收到以下错误:

ALINK:错误 AL1017:未指定目标文件名

我也试过:

al.exe assembly.dll /out:outAssembly.dll /link:name.ext

出现以下错误:

ALINK:警告 AL1020:忽略包含的程序集“assembly.dll”

ALINK:错误 AL1019:创建程序集时元数据失败 -- 系统找不到指定的文件。

我做错了什么?获取资源链接的正确语法是什么?

谢谢。

最佳答案

The Assembly Linker generates a file that has an assembly manifest from one or more files that are either modules or resource files. A module is an intermediate language (IL) file that does not have an assembly manifest.

assembly.dll 不能作为 Assembly Linker 的源,因为它已经一个带有 list 的程序集。所以你得到这个

ALINK:警告 AL1020:忽略包含的程序集“assembly.dll”

关于c# - 使用程序集链接器将资源文件链接到现有的 .NET 程序集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26361493/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com