一个库中的.NET多类库 [英] .NET Multiple Class Library in One Library
问题描述
合并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屋!