且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在可执行文件中添加DLL ...?

更新时间:2023-02-16 15:07:39

您需要看一下ILMerge .

下载:

http://www.microsoft.com/download/en/details.aspx?id=17630 [ ^ ]

CP文章:

使用ILMerge合并.NET程序集 [ http://ilmergegui.codeplex.com/ [ ^ ]

如果希望ILMerge参与构建过程,则需要对其进行配置以使其作为.exe项目的构建后任务运行.
You need to take a look at ILMerge.

Download:

http://www.microsoft.com/download/en/details.aspx?id=17630[^]

CP Article:

Merging .NET assemblies using ILMerge[^]

GUI Tool to make life easier:

http://ilmergegui.codeplex.com/[^]

If you want ILMerge to be part of your build process, you''ll need to configure it to run as a Post Build Task of your .exe project.