Joinery.Dovetail.Stashbox 0.7.0

dotnet add package Joinery.Dovetail.Stashbox --version 0.7.0
                    
NuGet\Install-Package Joinery.Dovetail.Stashbox -Version 0.7.0
                    
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="Joinery.Dovetail.Stashbox" Version="0.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Joinery.Dovetail.Stashbox" Version="0.7.0" />
                    
Directory.Packages.props
<PackageReference Include="Joinery.Dovetail.Stashbox" />
                    
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 Joinery.Dovetail.Stashbox --version 0.7.0
                    
#r "nuget: Joinery.Dovetail.Stashbox, 0.7.0"
                    
#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 Joinery.Dovetail.Stashbox@0.7.0
                    
#: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=Joinery.Dovetail.Stashbox&version=0.7.0
                    
Install as a Cake Addin
#tool nuget:?package=Joinery.Dovetail.Stashbox&version=0.7.0
                    
Install as a Cake Tool

Dovetail

Joint-driven application wiring for .NET. A library declares the configuration, services, logging and hosting it needs as joints, and a Roslyn source generator finds them at build time. Referencing a package is enough to wire it up: there is no extension method to remember, no assembly scanning and no runtime reflection, so Dovetail apps work with Native AOT and trimming.

github-release-badge github-license-badge github-build-badge nuget-Joinery.Dovetail-badge

Documentation: https://rocketsurgeonsguild.github.io/Dovetail/

Getting started

The shortest path is to swap your project's Microsoft SDK for its Dovetail counterpart. The SDK detects the kind of host, adds the Dovetail packages it needs and writes the bootstrapping code:


<Project Sdk="Microsoft.NET.Sdk.Web">


<Project Sdk="Joinery.Dovetail.Sdk.Web">

Pin the version in global.json under msbuild-sdks. See Dovetail SDKs for each Microsoft SDK.

A joint is a class that implements one of the joint interfaces. Mark it with [DovetailExport] and any application that references your library picks it up:

[DovetailExport]
public class TimeJoint : IServiceJoint
{
    public void Register(IDovetailContext context, IServiceCollection services)
    {
        services.AddSingleton(TimeProvider.System);
    }
}

See Defining joints for the full set of joint types, host types and categories.

Packages

Package NuGet What it does
Joinery.Dovetail nuget-Joinery.Dovetail-badge The joint interfaces, DovetailContextBuilder and the source generator
Joinery.Dovetail.Hosting nuget-Joinery.Dovetail.Hosting-badge Bootstraps the generic host, ASP.NET Core, .NET MAUI, Uno Platform and Blazor WebAssembly from your joints
Joinery.Dovetail.Configuration.Json nuget-Joinery.Dovetail.Configuration.Json-badge Loads JSON configuration files, such as appsettings.json
Joinery.Dovetail.Configuration.Yaml nuget-Joinery.Dovetail.Configuration.Yaml-badge Loads YAML configuration files, such as appsettings.yaml
Joinery.Dovetail.Configuration.Toml nuget-Joinery.Dovetail.Configuration.Toml-badge Loads TOML configuration files, such as appsettings.toml
Joinery.Dovetail.Serilog nuget-Joinery.Dovetail.Serilog-badge Serilog joint for LoggerConfiguration
Joinery.Dovetail.OpenTelemetry nuget-Joinery.Dovetail.OpenTelemetry-badge OpenTelemetry joint for IOpenTelemetryBuilder
Joinery.Dovetail.Autofac nuget-Joinery.Dovetail.Autofac-badge Autofac joint for ContainerBuilder
Joinery.Dovetail.DryIoc nuget-Joinery.Dovetail.DryIoc-badge DryIoc joint for IContainer
Joinery.Dovetail.Stashbox nuget-Joinery.Dovetail.Stashbox-badge Stashbox joint for IStashboxContainer
Joinery.Dovetail.Aspire nuget-Joinery.Dovetail.Aspire-badge Applies joints to an Aspire IDistributedApplicationBuilder
Joinery.Dovetail.Aspire.Testing nuget-Joinery.Dovetail.Aspire.Testing-badge Applies joints to an Aspire IDistributedApplicationTestingBuilder
Joinery.Dovetail.Testing nuget-Joinery.Dovetail.Testing-badge Runs shared test setup joints when the host is a unit test host
Joinery.Dovetail.ModularPipelines nuget-Joinery.Dovetail.ModularPipelines-badge Applies joints to a ModularPipelines PipelineBuilder
Joinery.Dovetail.Mermaid nuget-Joinery.Dovetail.Mermaid-badge Renders a context's resolved joints as a Mermaid diagram

MSBuild SDKs

Each SDK is a drop-in replacement for the Microsoft SDK it names.

Package NuGet Replaces
Joinery.Dovetail.Sdk nuget-Joinery.Dovetail.Sdk-badge Microsoft.NET.Sdk: console apps, libraries, test projects and file-based apps
Joinery.Dovetail.Sdk.Web nuget-Joinery.Dovetail.Sdk.Web-badge Microsoft.NET.Sdk.Web: ASP.NET Core applications
Joinery.Dovetail.Sdk.Worker nuget-Joinery.Dovetail.Sdk.Worker-badge Microsoft.NET.Sdk.Worker: worker services
Joinery.Dovetail.Sdk.Razor nuget-Joinery.Dovetail.Sdk.Razor-badge Microsoft.NET.Sdk.Razor: Razor class libraries
Joinery.Dovetail.Sdk.BlazorWebAssembly nuget-Joinery.Dovetail.Sdk.BlazorWebAssembly-badge Microsoft.NET.Sdk.BlazorWebAssembly: Blazor WebAssembly applications
Joinery.Dovetail.Sdk.WebAssembly nuget-Joinery.Dovetail.Sdk.WebAssembly-badge Microsoft.NET.Sdk.WebAssembly: WebAssembly applications
Joinery.Dovetail.Sdk.WindowsDesktop nuget-Joinery.Dovetail.Sdk.WindowsDesktop-badge Microsoft.NET.Sdk.WindowsDesktop: Windows Forms and WPF
Joinery.Dovetail.Sdk.Aspire.AppHost nuget-Joinery.Dovetail.Sdk.Aspire.AppHost-badge Aspire.AppHost.Sdk: Aspire AppHost projects
Joinery.Dovetail.Sdk.Console nuget-Joinery.Dovetail.Sdk.Console-badge Joinery.Dovetail.Sdk plus a generated Program.cs for ConsoleAppFramework apps

Joinery.Dovetail.Analyzers holds the source generator. Joinery.Dovetail brings it in, so you don't reference it yourself.

Configuration

Options binding and configuration schemas come from Optionary, which Dovetail doesn't depend on. Add the Optionary package and put [Optionary] on an options class: Optionary generates a reflection-free binder for IOptions<T> and a JSON Schema, and Dovetail exports a joint that registers the options in every host that references the library. A library's appsettings files in JSON, YAML or TOML are still shipped by the Dovetail SDK. See Configuration with Optionary and Configuration Files.

Contributing

Run mise install before building: it installs the .NET SDK and the extra .NET 10 runtime that the net10.0 tests run on (.config/mise.toml). global.json pins the same SDK, so a dotnet outside mise fails fast unless that SDK is installed.

On macOS, the first mise install of a new .NET SDK can overwrite the shared ~/.local/share/mise/dotnet-root/dotnet host in place, and macOS then kills every dotnet command (SIGKILL). Replace the host with a fresh copy to fix it:

cd ~/.local/share/mise/dotnet-root && cp -p dotnet dotnet.fresh && mv -f dotnet.fresh dotnet
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.  net11.0 is compatible. 
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.7.0 0 11/16/2026
0.6.0 43 11/16/2026
0.5.3 46 11/13/2026
0.5.2 45 11/13/2026
0.5.1 54 11/13/2026
0.5.0 51 11/12/2026
0.4.5 55 11/11/2026
0.4.4 83 11/8/2026
0.4.3 88 11/8/2026
0.4.2 104 11/2/2026
0.4.1 105 11/1/2026
0.4.0 103 10/31/2026
0.3.1 108 10/31/2026
0.3.0 97 10/29/2026
0.2.3 107 10/28/2026