lundi 14 septembre 2015

How can I programmatically rebuild an existing assembly?

I have an assembly that I built which will be dynamically loaded into my application. However, I would like to make a copy of this assembly and load it as well, but it turns out that this results in unwanted behavior:

If an assembly with the same identity is already loaded, LoadFrom returns the loaded assembly even if a different path was specified.

The link above to my original question explains that although I have 2 of the same assemblies, they both read from their own xml settings file. So, is it possible to programmatically 'rebuild' an existing assembly so that it's identity changes, but still has the same structure?

Any alternatives to the same result are really appreciated too.





Aucun commentaire:

Enregistrer un commentaire