loader = new PluginLoader("./Plugins", this); loader.LoadPlugins(); foreach (var plugin in loader.Plugins) plugin.OnEnable();
void Log(string message); string GetConfig(string key);
public void Start()
dotnet add package ZeresPluginLibrary Create a shared interface that both host and plugins reference:
public override void OnLoad(IPluginHost host)
this.host = host as IAppHost; host.Log("HelloWorld plugin loaded");
[Plugin("My Plugin", Author = "Jane", Version = "1.0.0")] public class MyPlugin : PluginBase ... The main engine that discovers, validates, and instantiates plugins. Getting Started (Step-by-Step) Step 1: Install the Library Via NuGet Package Manager: