ILMerge合并多个DLL

1.Imerge下载地址:https://www.microsoft.com/en-us/download/details.aspx?id=17630

2.场景:C盘有2个dll,分别为: C:A.dll ,C:B.dll 合并为C:C.dll

3.ILMerge安装到C盘的路径为:C:Program Files (x86)MicrosoftILMerge

运行cmd:

(1)cd C:Program Files (x86)MicrosoftILMerge

(2)ILmerge /ndebug /target:dll /out:C:C.dll /log C:A.dll C:B.dll

out:C.dll:是输出文件; A.dll,B.dll 是源文件,多个源文件用空格隔开。

例:

ILmerge /ndebug /target:library /targetplatform:v2 /out:E:Lbb.WorkLbb.CxCommon.ExtendLibrarylibCommon.ExtendLibrary.dll /log E:Lbb.WorkLbb.CxCommon.ExtendLibraryinDebugCommon.ExtendLibrary.dll E:Lbb.WorkLbb.CxCommon.ExtendLibraryinDebugNewtonsoft.Json.dll /wildcards

Imerge界面化管理工具下载地址:http://ilmergegui.codeplex.com/releases/view/617003

原文地址:https://www.cnblogs.com/XuPengLB/p/6877744.html