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)\Microsoft\ILMerge

运行cmd:

(1)cd C:\Program Files (x86)\Microsoft\ILMerge

(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.Work\Lbb.Cx\Common.ExtendLibrary\lib\Common.ExtendLibrary.dll /log E:\Lbb.Work\Lbb.Cx\Common.ExtendLibrary\bin\Debug\Common.ExtendLibrary.dll E:\Lbb.Work\Lbb.Cx\Common.ExtendLibrary\bin\Debug\Newtonsoft.Json.dll /wildcards

 

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

posted @ 2017-05-19 12:15  会弹猫的吉他  阅读(415)  评论(0编辑  收藏  举报