Joinery.Dovetail.Analyzers 0.7.0

dotnet add package Joinery.Dovetail.Analyzers --version 0.7.0
                    
NuGet\Install-Package Joinery.Dovetail.Analyzers -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.Analyzers" 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.Analyzers" Version="0.7.0" />
                    
Directory.Packages.props
<PackageReference Include="Joinery.Dovetail.Analyzers" />
                    
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.Analyzers --version 0.7.0
                    
#r "nuget: Joinery.Dovetail.Analyzers, 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.Analyzers@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.Analyzers&version=0.7.0
                    
Install as a Cake Addin
#tool nuget:?package=Joinery.Dovetail.Analyzers&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 net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Joinery.Dovetail.Analyzers:

Package Downloads
Joinery.Dovetail

Declares an application's configuration, services and logging as joints, which a source generator finds at build time. There is no assembly scanning or runtime reflection, so Dovetail apps work with Native AOT and trimming.

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 222 11/16/2026
0.5.3 977 11/13/2026
0.5.2 112 11/13/2026
0.5.1 134 11/13/2026
0.5.0 156 11/12/2026
0.4.5 177 11/11/2026
0.4.4 348 11/8/2026
0.4.3 1,008 11/8/2026
0.4.2 499 11/2/2026
0.4.1 230 11/1/2026
0.4.0 346 10/31/2026
0.3.1 243 10/31/2026
0.3.0 244 10/29/2026
0.2.3 233 10/28/2026