ILMerge是合并.net的assembly的工具,最新版的支持.net 4.0的ILmerge下载:
ILMerge用法示例如下:
ILMerge.exe /target:library /targetplatform:v4 /out:"E:ProjectsILMergeTestARefAandB4.dll" "E:ProjectsILMergeTestAAinDebug*.dll" /wildcards /log:"E:ProjectsILMergeTestARefAandB4.log"
参数说明:
/target:library =》表示生成目标为dll
/targetplatform:v4 =》 编译平台为.net4.0
/out:"E:ProjectsILMergeTestARefAandB4.dll" =》合并后输出文件路径
"E:ProjectsILMergeTestAAinDebug*.dll" /wildcards =》合并的dll,因为此处使用了通配符,因此需要 .wildcards
/log:"E:ProjectsILMergeTestARefAandB4.log" =》输出合并日志