什么是初级装配
我正在尝试在我们的构建过程中使用 ILMerge。 ILMerge 具有 Kind 枚举,其中包含 SameAsPrimaryAssembly 字段。 这个主要组件是什么?如何设置主装配?
I am trying to use ILMerge in our build process.
ILMerge has the Kind enumeration, which contains the SameAsPrimaryAssembly field.
What is the this primary assembly? How can I set the primary assembly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ILMerge 获取一组输入程序集并将它们合并为一个目标程序集。输入程序集列表中的第一个程序集是主程序集。当主程序集是可执行文件时,目标程序集将被创建为具有与主程序集相同入口点的可执行文件。此外,如果主程序集具有强名称,并且提供了 .snk 文件,则目标程序集将使用指定的密钥重新签名,以便它也具有强名称。检查一下:
http://rongchaua.net/blog/c-how-to-merge - assembly/
http://www.microsoft.com/downloads/details.aspx?FamilyID=22914587-B4AD-4EAE-87CF-B14AE6A939B0&displaylang=en
设置方法如下:
ilmerge /out:Merged.dll /keyfile:key.snk Primary.dll secondary.dll
ILMerge takes a set of input assemblies and merges them into one target assembly. The first assembly in the list of input assemblies is the primary assembly. When the primary assembly is an executable, then the target assembly is created as an executable with the same entry point as the primary assembly. Also, if the primary assembly has a strong name, and a .snk file is provided, then the target assembly is re-signed with the specified key so that it also has a strong name. Check this:
http://rongchaua.net/blog/c-how-to-merge-assembly/
http://www.microsoft.com/downloads/details.aspx?FamilyID=22914587-B4AD-4EAE-87CF-B14AE6A939B0&displaylang=en
Here's how to set it:
ilmerge /out:Merged.dll /keyfile:key.snk Primary.dll Secondary.dll