TypeCobol icon indicating copy to clipboard operation
TypeCobol copied to clipboard

Do not use Assembly.LoadFrom ?

Open fm-117 opened this issue 8 months ago • 0 comments

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.

fm-117 avatar Jun 13 '24 11:06 fm-117