SquidStd.Plugin 0.41.1

dotnet add package SquidStd.Plugin --version 0.41.1
                    
NuGet\Install-Package SquidStd.Plugin -Version 0.41.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SquidStd.Plugin" Version="0.41.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SquidStd.Plugin" Version="0.41.1" />
                    
Directory.Packages.props
<PackageReference Include="SquidStd.Plugin" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SquidStd.Plugin --version 0.41.1
                    
#r "nuget: SquidStd.Plugin, 0.41.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SquidStd.Plugin@0.41.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SquidStd.Plugin&version=0.41.1
                    
Install as a Cake Addin
#tool nuget:?package=SquidStd.Plugin&version=0.41.1
                    
Install as a Cake Tool

<h1 align="center">SquidStd.Plugin</h1>

Loader for SquidStd plugins. Wires internal and external ISquidStdPlugin implementations into the bootstrap: it collects them, resolves the dependency order across the whole set, and calls Configure on each one before the bootstrap starts.

Install

dotnet add package SquidStd.Plugin

Usage

using SquidStd.Core.Data.Bootstrap;
using SquidStd.Plugin.Extensions;
using SquidStd.Services.Core.Services.Bootstrap;

var bootstrap = SquidStdBootstrap.Create(new SquidStdOptions
{
    ConfigName = "myapp",
    RootDirectory = "./data"
});

bootstrap.UsePlugins(plugins =>
{
    plugins.Add<WebPlugin>();          // internal, by type
    plugins.Add(new MetricsPlugin());  // internal, by instance
    plugins.FromDirectory("plugins");  // external assemblies (*.dll)
});

await bootstrap.RunAsync();

How loading works

  • Plugins are ordered by dependency: PluginMetadata.Dependencies (plugin ids, compared case-insensitively) is resolved across internal and external plugins together, so an external plugin can depend on an internal one and vice versa.
  • Configure runs before the bootstrap starts, so plugins can register their own configuration sections and services against the container.
  • Plugin directories are managed like the other bootstrap directories: a missing directory is created on the spot and simply yields no plugins.
  • Each plugin receives a PluginContext populated with the standard keys: PluginContextKeys.RootDirectory (the bootstrap root directory) and PluginContextKeys.AppName (the bootstrap app name).

Trusted plugins

External assemblies load into the default AssemblyLoadContext: there is no unloading and no per-plugin version isolation, so plugins are expected to be trusted. A failing plugin stops startup, either with a PluginLoadException (discovery, ordering, or instantiation failure) or with the plugin's own exception from Configure.

Ordering with ConfigureLogging() is free since the config-first bootstrap: configuration sections bind eagerly at registration, so plugins can register their sections at any point before the services consume them. Calling ConfigureLogging() before UsePlugins makes the plugin-load log lines visible. The one residual rule: OnConfigLoaded hooks targeting a plugin's section must be registered before ConfigureLogging() runs, because hooks are applied there.

License

MIT - part of SquidStd.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.41.1 84 8/5/2026
0.41.0 867 7/24/2026
0.40.1 98 7/23/2026
0.40.0 452 7/21/2026
0.39.0 207 7/20/2026
0.38.0 140 7/20/2026
0.37.0 219 7/17/2026
0.36.0 182 7/15/2026
0.35.0 100 7/15/2026
0.34.0 104 7/14/2026
0.33.1 100 7/13/2026
0.33.0 96 7/13/2026
0.32.1 98 7/13/2026
0.32.0 94 7/13/2026
0.31.0 97 7/12/2026
0.30.0 95 7/12/2026
0.29.0 101 7/11/2026
0.28.0 110 7/8/2026
0.27.0 107 7/7/2026
0.26.0 97 7/7/2026
Loading failed