如何在单个DLL中包装多个dll [英] How to wrap multiple dll in a single dll

查看:136
本文介绍了如何在单个DLL中包装多个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.microsoft.com/downloads/en/details.aspx?familyid=22914587-b4ad-4eae-87cf -b14ae6a939b0& displaylang = en

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆