如何在单个DLL中包装多个dll [英] How to wrap multiple dll in a single dll
问题描述
可能重复:
合并.net管理dlls
我创建了一个测试项目,其中我引用了一个其他项目的dll。当我建立测试项目时,我看到测试项目和引用的dll有不同的dll。我想把这两个dll都放在一个单一的DLL里。
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.
我该怎么做?
推荐答案
看看ILMerge:
http://www.codeproject.com/KB/dotnet/mergingassemblies.aspx
使用ILMerge,您可以合并一堆程序集运行命令,如:
With ILMerge you can merge a bunch of assemblies by running the command like:
ilmerge /out:MergedAssembly.dll ProjectAssembly1.dll ProjectAssembly2.dll ProjectAssembly3.dll
ilmerge /out:MergedAssembly.dll ProjectAssembly1.dll ProjectAssembly2.dll ProjectAssembly3.dll
这将合并3个程序集到单个。
This will merge 3 assemblies into a single one.
这篇关于如何在单个DLL中包装多个dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!