2012. 2. 20. 20:38

ILMerge : merge multiple .NET assemblies into a single assembly

같은 이름의 다른 위치에 있는 파일 로딩 문제를 고민하다가 Microsoft Research 에서 만든 ILMerge 라는 툴을 발견하였습니다.  간단히 설명하면 여러개의 dll 을 하나로 합쳐서 배포할 수 있게 해주는 툴입니다. 

아래 링크에서 최신 버전을 받아서 설치합니다.

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17630 

설치가 완료되면 

ilmerge /target:winexe /out:test.exe MyApp.exe lib1.dll lib2.dll lib3.dll

결과가 dll 이면 /target:library 로 하면 됩니다. 그리고 자세한 옵션은 Ilmerge 의 명령어 도움말을 보시면 됩니다.

훌륭합니다, Microsoft~!

참고:
http://research.microsoft.com/en-us/people/mbarnett/ILMerge.aspx
http://stackoverflow.com/questions/4635573/merging-dll-files-with-ilmerge-failing-to-work