How do I merge multiple .net assemblies into a single assembly?

断了今生、忘了曾经 提交于 2019-11-26 22:33:25

Try ILMerge.

Dirk Vollmar

Using ILMerge is probably the simplest solution. However, ILMerge has the drawback that it changes the identity of referenced assemblies. As a consequence, you might run into issues with security or serialization.

An excellent blog post by Simone Busoli discusses the following options to merge assemblies into a single executable:

  1. ILMerge
  2. Embedding assemblies as a resource and subscribing to the AssemblyResolve event.
  3. Using Costura, an open source tool which takes care of embedding referenced assemblies as described in step 2.

ILMerge is the tool you're looking for:

ILMerge

The documentation for ILMerge can be found here:

http://research.microsoft.com/en-us/people/mbarnett/ILMerge.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!