TypeCobol
TypeCobol copied to clipboard
Do not use Assembly.LoadFrom ?
The class ExtensionManager
uses Assembly.LoadFrom
to load extensions identified by their assembly file path. This method may lead to duplicate assemblies loaded in same context.
A better option would be to use Assembly.Load
and subscribe to the AppDomain.AssemblyResolve
event to actually tell the runtime to select the correct file.