开发者

Load more DLL files into 1 assembly object in .NET

let's say I have 5 DLL files that are each a partial class, that they should form together... Is there a way I could load these 5 files into 1 ass开发者_运维百科embly object ?


It is not possible to spread a partial class across more than one DLL. Putting 5 classes in one DLL is quite possible, just keep adding classes to your project. Don't start looking at ILMerge until you sorted this out.


You can simply use ILMerge to merge all assemblies into one. If that's not what you're asking, you cannot have partitions of the same class distributed accross multiple assemblies. The only workaround that I know of is using extension methods.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜