ILMerge 簡單使用


使用說明  ilmerge /?

Usage: ilmerge
[/lib:directory]* [/log[:filename]]
[/keyfile:filename [/delaysign]]
[/internalize[:filename]]
[/t[arget]:(library|exe|winexe)]
[/closed]
[/ndebug]
[/ver:version]
[/copyattrs [/allowMultiple]
[/keepFirst]]
[/xmldocs]
[/attr:filename]
[/targetplatform:<version>[,<platformdir>] | /v1 | /v1.1 | /v2 | /v4]
[
/useFullPublicKeyForReferences]
[/wildcards]
[/zeroPeKind]
[/allowDup:type]*
[/union]
[/align:n]
/out:filename <primary assembly> [<other assemblies>...]

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" =》輸出合並日志

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM