开发者

Merge two assemblies at runtime - C#

开发者 https://www.devze.com 2023-01-15 20:03 出处:网络
Is it possible to merge two assemblies at runtime such that, when you iterate over the ExportedTypes, all the types from both original assemblies are returned?

Is it possible to merge two assemblies at runtime such that, when you iterate over the ExportedTypes, all the types from both original assemblies are returned?

The why:

I use a database migration framework to update my databases. It take a single assembly made up of special classes which defines the modifications made to the database.

I have two databases the are very similar. Many tables are identical, but each has a couple of unique tables. I would like to have a general migration assembly and a specific assembly for eac开发者_Python百科h database. But to use it with my framework, I need to stuff the two assemblies into a single one. Is this possible?


Take a look at ILMerge:

ILMerge is a utility for merging multiple .NET assemblies into a single .NET assembly.

Though it only runs in the v2.0 .NET runtime.

0

精彩评论

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