-
Notifications
You must be signed in to change notification settings - Fork 1k
Load plugins with isolated AssemblyLoadContext #4397
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
base: master
Are you sure you want to change the base?
Conversation
| } | ||
|
|
||
| private static Assembly? CurrentDomain_AssemblyResolve(object? sender, ResolveEventArgs args) | ||
| private sealed class PluginLoadContext : AssemblyLoadContext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move it to a separate file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping @Jim8y
shargon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@superboyiii could you test it? I remember that a solution like this produce some errors in the past
| File.Copy(sourcePluginPath, pluginAssemblyPath, true); | ||
| File.Copy(sourceDependencyPath, Path.Combine(pluginRoot, $"{DependencyAssemblyName}.dll"), true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ut is not cleaned, we should delete the folder after execute it
|
take a look of #4225 (comment) |
Summary
Testing