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.
精彩评论