Skip to main content
net10.0net8.0net9.0

An Aspire integration leveraging the RavenDB container.

Published
Jul 6, 2026
3mo ago
Total Downloads
74.2K
74,220

Install

dotnet add package CommunityToolkit.Aspire.Hosting.RavenDB --version 13.4.1-beta.674
ProductVersions
.NET
net10.0net8.0net9.0

README

CommunityToolkit.Aspire.Hosting.RavenDB library

Provides extension methods and resource definitions for an Aspire AppHost to configure a RavenDB resource.

Getting started

Install the package

In your AppHost project, install the Aspire RavenDB Hosting library with NuGet:

dotnet add package CommunityToolkit.Aspire.Hosting.RavenDB

Usage example

Then, in the Program.cs file of AppHost, add a RavenDB resource and consume the connection using the following methods:

var db = builder.AddRavenDB("ravendb").AddDatabase("mydb");

var myService = builder.AddProject<Projects.MyService>()
                       .WithReference(db);

Open databases in RavenDB Studio

Every database added with AddDatabase(...) exposes a clickable RavenDB Studio link in the Aspire dashboard that opens that database's Documents view directly (for example http://localhost:9534/studio/index.html#databases/documents?&database=mydb). The link is added automatically — no extra configuration is required. For secured servers it uses the configured public server URL.

Additional documentation

https://learn.microsoft.com/dotnet/aspire/community-toolkit/ravendb

Feedback & contributing

https://github.com/CommunityToolkit/Aspire

Changes from Previous Version

v13.4.0v13.4.1-beta.674
Added Dependencies
MessagePack(net10.0)
MessagePack(net8.0)
MessagePack(net9.0)

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.