CoolCat
CoolCat copied to clipboard
CollectibleAssemblyLoadContext 类中的Load重载方法只能返回null?
如题,您这个项目中插件DemoPlugin2引用了DemoReferenceLibrary 为什么不考虑从Load实现DemoReferenceLibrary库的载入? 如:https://github.com/dotnet/samples/tree/067de6fb14409461cee1adbbef4dedeed11d7d99/core/tutorials/Unloading中演示的那样
也可以,只是之前在3.x中试过LoadFromAssemblyPath。使用这个方法加载程序集,会导致使用Unload方法卸载ALC的时候,文件依然被占用,导致插件升级失败。