一个库中的.NET多类库 [英] .NET Multiple Class Library in One Library

查看:73
本文介绍了一个库中的.NET多类库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2008工作。我有一个自定义类库(CL1)引用另一个定制类库(CL2)。这最终在我的发行文件夹中有CL1和CL2。现在CL1的消费者需要在项目中包含两个dll,我认为这是不合适的。我有强烈的感觉,必须有一种方法来实现单个DLL解决方案。是否有建议(指导)d的方式实现这一点。



合并CL1和CL2不是一个选项,因为CL2在多个其他项目/ dll中更常见并被引用。我错过了一些直接的选择吗?或者我需要嵌入CL2作为资源?怎么样?谷歌网络但无法找到在任何地方讨论的问题。

解决方案

是的,您可以在使用ILmerge发布产品之前手动进行操作。有关详细信息,请参见 codeproject ,并在 Brad McCabe的博客。


I am working in VS2008. I have a custom class library (CL1) which references another custom class library (CL2). This ends up having CL1 and CL2 in my release folder. Now the consumer of CL1 needs to include two dll's in the project which I think is not appropriate. I have strong feeling that there must be a way to achieve a single DLL solution. Is there a recommended (guideline-d) way of achieving this.

Merging CL1 and CL2 is not an option because CL2 is more common and referenced in multiple other projects/dll's . Am I missing some straight forward option? Or I need to embed CL2 as resource? How? Googled web but could not find the problem discussed anywhere.

解决方案

Yes you can do it manually before releasing your product using ILmerge. More details can be found here at codeproject and on Brad McCabe's blog.

这篇关于一个库中的.NET多类库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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