Zeres Plugin Library [portable] -
void Log(string message); string GetConfig(string key);
Compile the plugin to a DLL and drop it into the host’s ./Plugins folder. The host auto-detects it on next start. Advanced Usage Dependency Between Plugins If PluginB depends on PluginA, use the DependsOn property:
public override void OnLoad(IPluginHost host) zeres plugin library
[Plugin("PluginB", DependsOn = new[] "PluginA" )] public class PluginB : PluginBase ... The library includes a lightweight event aggregator:
dotnet add package ZeresPluginLibrary Create a shared interface that both host and plugins reference: void Log(string message)
Install-Package ZeresPluginLibrary Or via .NET CLI:
public void Log(string message) => Console.WriteLine($"[HOST] message"); public string GetConfig(string key) => ConfigurationManager.AppSettings[key]; using ZeresPluginLibrary; [Plugin("HelloWorld", Author = "Dev", Version = "1.0.0")] public class HelloWorldPlugin : PluginBase string GetConfig(string key)
host.Log("Plugin enabled - Hello, world!");















