Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zaccheow opened this issue Dec 26, 2020 · 1 comment

Comments

@zaccheow
Copy link

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

@lamondlu
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants