weikio / PluginFramework

Everything is a Plugin in .NET
MIT License
538 stars 101 forks source link

How can I load / unload / reload a plugin on runtime #47

Open ThatDeveloper opened 3 years ago

ThatDeveloper commented 3 years ago

Hey there, awesome project. What I was wondering is: How can I load and unload at runtime? I have read https://www.infoq.com/articles/Plugin-Framework-DotNet/ and was wondering if that is still the current state regarding unloading.

I am using .NET Core 5.

Best, Manuel

bradws commented 2 years ago

Hi, Yes I too would love this feature. I was reading Assembly Unloading in .NET Core, thus it appears .NET core officially supports the unloading of Assemblies.

Could this feature be considered?

mikoskinen commented 2 years ago

This is something that is on a roadmap, unfortunately we can't yet commit to a specific date :( There's a PR available (thanks to @rolbre) which adds the feature but it's still waiting to be checked out.

Unloading was actually implemented at one point before the 1.0.0 release but the implementation was cumbersome so we ended up removing it. The idea was/still is to add it to the 2.0.0 release.

Thanks for the feedback!

gordon-matt commented 2 years ago

+1 Definitely something good to have. I'd like to show an admin page with all available plugins and let the user install/uninstall whichever ones he wants.

HybridSolutions commented 2 years ago

Would also love to see this! Is this project still maintained?

franklupo commented 1 year ago

news?

gordon-matt commented 1 year ago

@mikoskinen Is this still planned? Is there going to be a v2.0 and will it support this feature?