ILMerge 简单应用
ILMerge是合并.net的assembly的工具,最新版的支持.net 4.0的ILmerge下载:
ILMergeGUI:
https://ilmergegui.codeplex.com/
或者百度云下载
http://pan.baidu.com/s/1i5548Ah
ILMerge用法示例如下:
ILMerge.exe /target:library /targetplatform:v4 /out:"D:\我是输出文件.dll" "D:\新建文件夹\*.dll" /wildcards /log:"D:\我是日志.log"
参数说明:
/target:library =》表示生成目标为dll 或 winexe =》输出为exe
/targetplatform:v4 =》 编译平台为.net4.0 =>可以不填写
/out:"E:\Projects\ILMergeTest\A\Ref\AandB4.dll" =》合并后输出文件路径
"E:\Projects\ILMergeTest\A\A\bin\Debug\*.dll" /wildcards =》合并的dll,因为此处使用了通配符,因此需要 .wildcards
/log:"E:\Projects\ILMergeTest\A\Ref\AandB4.log" =》输出合并日志