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

查看:238
本文介绍了如何包装在单个DLL多个DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
  合并.NET托管的dll

我创造,我引用一个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.

我怎样才能做到这一点。

How can I do it.

推荐答案

看看ILMerge:

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

<一个href="http://www.$c$cproject.com/KB/dotnet/mergingassemblies.aspx">http://www.$c$cproject.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天全站免登陆