CommunityToolkit.Aspire.Hosting.Azure.Dapr
v13.0.0Latest Stable
net8.0net9.0net10.0
Azure Dapr support for .NET Aspire.
Published
Nov 25, 2025
11mo ago
Total Downloads
95.9K
95,924
Install
dotnet add package CommunityToolkit.Aspire.Hosting.Azure.Dapr --version 13.0.0
| Product | Versions |
|---|---|
| .NET |
README
CommunityToolkit.Aspire.Hosting.Azure.Dapr library
Provides extension methods and resource definitions for a .NET Aspire AppHost to configure Dapr resources.
Getting started
Install the package
In your AppHost project, install the .NET Aspire Dapr Hosting library with NuGet:
dotnet add package CommunityToolkit.Aspire.Hosting.Azure.Dapr
Usage example
Then, in the Program.cs file of AppHost, add Dapr resources and consume the connection using the following methods:
var builder = DistributedApplication.CreateBuilder(args);
var stateStore = builder.AddDaprStateStore("statestore");
var pubSub = builder.AddDaprPubSub("pubsub");
builder.AddProject<Projects.MyApp>("myapp")
.WithDaprSidecar()
.WithReference(stateStore)
.WithReference(pubSub);
builder.Build().Run();
Additional documentation
Notes
Note that Aspire is only tested for compatibility with the most recently stable version of Dapr. Currently 1.15.3 for the Dapr runtime and 1.15.0 for the Dapr CLI.
Feedback & contributing
Changes from Previous Version
No structural changes between v13.0.0-beta.462 and v13.0.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.
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.