ILMerge是合併.net的assembly的工具,最新版的支持.net 4.0的ILmerge下載:工具
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"orm
參數說明:get
/target:library =》表示生成目標爲dll編譯
/targetplatform:v4 =》 編譯平臺爲.net4.0form
/out:"E:\Projects\ILMergeTest\A\Ref\AandB4.dll" =》合併後輸出文件路徑下載
"E:\Projects\ILMergeTest\A\A\bin\Debug\*.dll" /wildcards =》合併的dll,由於此處使用了通配符,所以須要 .wildcardsbug
/log:"E:\Projects\ILMergeTest\A\Ref\AandB4.log" =》輸出合併日誌di