CoolCat icon indicating copy to clipboard operation
CoolCat copied to clipboard

CollectibleAssemblyLoadContext 类中的Load重载方法只能返回null?

Open zaccheow opened this issue 3 years ago • 1 comments

如题,您这个项目中插件DemoPlugin2引用了DemoReferenceLibrary 为什么不考虑从Load实现DemoReferenceLibrary库的载入? 如:https://github.com/dotnet/samples/tree/067de6fb14409461cee1adbbef4dedeed11d7d99/core/tutorials/Unloading中演示的那样

zaccheow avatar Dec 26 '20 03:12 zaccheow

也可以,只是之前在3.x中试过LoadFromAssemblyPath。使用这个方法加载程序集,会导致使用Unload方法卸载ALC的时候,文件依然被占用,导致插件升级失败。

lamondlu avatar Dec 26 '20 08:12 lamondlu