ILMerge 简单使用

ILMerge是合并.net的assembly的工具,最新版的支持.net 4.0的ILmerge下载:

http://www.microsoft.com/downloads/details.aspx?FamilyID=22914587-b4ad-4eae-87cf-b14ae6a939b0&displaylang=en

ILMerge用法示例如下:

ILMerge.exe /target:library /targetplatform:v4 /out:"E:\Projects\ILMergeTest\A\Ref\AandB4.dll" "E:\Projects\ILMergeTest\A\A\bin\Debug\*.dll" /wildcards /log:"E:\Projects\ILMergeTest\A\Ref\AandB4.log"

参数说明:

/target:library  =》表示生成目标为dll

/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" =》输出合并日志

posted @ 2011-08-24 22:51  kimogigi  阅读(7844)  评论(5编辑  收藏  举报