CaeriusNet.Aspire 11.2.0

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

CaeriusNet.Aspire

CaeriusNet.Aspire wires CaeriusNet 12 to Aspire's SQL Server and Redis client integrations. It preserves Aspire configuration and health behavior, creates a scope and connection lease per operation, and emits one Caerius client span by default instead of duplicate low-level SqlClient spans.

Prerequisites

  • SDK 10.0.400 (patch roll-forward), Roslyn 5.9+ and C# 14
  • CaeriusNet 11.2.0
  • SQL Server 2022 (major version 16) or SQL Server 2025 (major version 17)
dotnet add package CaeriusNet.Aspire --version 11.2.0

Configure an Aspire host

using CaeriusNet.Aspire;

builder.AddCaeriusNetAspire(
    sqlConnectionName: "orders",
    configureCaerius: options => options.ApplicationNamespace = "shop",
    redisConnectionName: "cache");

For another database, use keyed DI:

builder.AddKeyedCaeriusNetAspire(
    caeriusName: "reporting",
    sqlConnectionName: "reporting");

public sealed class Reports(
    [FromKeyedServices("reporting")] ICaeriusNetDbContext database)
{
}

The optional Caerius health check validates SERVERPROPERTY('ProductMajorVersion') once at startup and accepts only 16 or 17. Enable low-level SqlClient tracing only when you intentionally want those spans in addition to Caerius telemetry.

Documentation · Migration guide · Issues

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
11.2.0 36 8/21/2026