How to wrap multiple dll in a single dll [duplicate]

☆樱花仙子☆ 提交于 2019-11-30 19:17:16

问题


Possible Duplicate:
Merging .net managed dlls

I create a test project in which I referenced a dll from some other project. When I build my test project, I see different dll for test project and the referenced dll. I want to wrap both dll's in a single dll.

How can I do it.


回答1:


Take a look at ILMerge:

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

http://www.codeproject.com/KB/dotnet/mergingassemblies.aspx

With ILMerge you can merge a bunch of assemblies by running the command like:

ilmerge /out:MergedAssembly.dll ProjectAssembly1.dll ProjectAssembly2.dll ProjectAssembly3.dll

This will merge 3 assemblies into a single one.



来源:https://stackoverflow.com/questions/4416632/how-to-wrap-multiple-dll-in-a-single-dll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!