CommunityToolkit.Aspire.Hosting.Dapr 9.3.1-beta.252

Prefix Reserved
This is a prerelease version of CommunityToolkit.Aspire.Hosting.Dapr.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Hosting.Dapr --version 9.3.1-beta.252
                    
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Dapr -Version 9.3.1-beta.252
                    
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="CommunityToolkit.Aspire.Hosting.Dapr" Version="9.3.1-beta.252" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.Dapr" Version="9.3.1-beta.252" />
                    
Directory.Packages.props
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Dapr" />
                    
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 CommunityToolkit.Aspire.Hosting.Dapr --version 9.3.1-beta.252
                    
#r "nuget: CommunityToolkit.Aspire.Hosting.Dapr, 9.3.1-beta.252"
                    
#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.
#addin nuget:?package=CommunityToolkit.Aspire.Hosting.Dapr&version=9.3.1-beta.252&prerelease
                    
Install CommunityToolkit.Aspire.Hosting.Dapr as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.Dapr&version=9.3.1-beta.252&prerelease
                    
Install CommunityToolkit.Aspire.Hosting.Dapr as a Cake Tool

CommunityToolkit.Aspire.Hosting.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.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

https://dapr.io/

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

https://github.com/dotnet/aspire

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on CommunityToolkit.Aspire.Hosting.Dapr:

Package Downloads
CommunityToolkit.Aspire.Hosting.Dapr.AzureRedis

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
9.3.1-beta.259 30 4/8/2025
9.3.1-beta.258 31 4/8/2025
9.3.1-beta.257 31 4/8/2025
9.3.1-beta.256 32 4/8/2025
9.3.1-beta.255 33 4/8/2025
9.3.1-beta.254 27 4/8/2025
9.3.1-beta.253 121 4/1/2025
9.3.1-beta.252 155 3/27/2025
9.3.1-beta.250 99 3/27/2025
9.3.1-beta.249 95 3/27/2025
9.3.1-beta.248 92 3/27/2025
9.3.1-beta.247 94 3/27/2025
9.3.1-beta.244 444 3/25/2025
9.3.1-beta.242 436 3/24/2025
9.3.1-beta.241 118 3/19/2025
9.3.0 3,295 3/19/2025
9.3.0-beta.239 114 3/19/2025
9.2.2-beta.237 112 3/19/2025
9.2.2-beta.236 79 3/14/2025
9.2.2-beta.230 118 3/13/2025
9.2.2-beta.229 106 3/13/2025
9.2.2-beta.228 130 3/11/2025
9.2.2-beta.227 121 3/11/2025
9.2.2-beta.226 125 3/11/2025
9.2.2-beta.225 122 3/11/2025
9.2.2-beta.224 114 3/11/2025
9.2.2-beta.223 126 3/10/2025
9.2.2-beta.222 122 3/10/2025
9.2.2-beta.220 120 3/9/2025
9.2.2-beta.218 117 3/9/2025
9.2.2-beta.217 157 3/7/2025
9.2.2-beta.216 162 3/7/2025
9.2.2-beta.215 165 3/7/2025
9.2.2-beta.214 163 3/5/2025
9.2.2-beta.213 149 3/5/2025
9.2.2-beta.212 160 3/5/2025
9.2.2-beta.211 167 3/4/2025
9.2.2-beta.210 167 3/4/2025
9.2.2-beta.208 58 3/3/2025
9.2.1 4,878 3/3/2025
9.2.1-beta.207 81 3/2/2025
9.2.1-beta.206 51 3/1/2025
9.2.1-beta.205 52 2/27/2025
9.2.1-beta.204 65 2/26/2025
9.2.1-beta.203 54 2/26/2025
9.2.0 1,139 2/26/2025
9.2.0-beta.202 47 2/26/2025
9.2.0-beta.201 53 2/26/2025
9.2.0-beta.199 55 2/26/2025
9.2.0-beta.198 45 2/26/2025
9.1.1-beta.197 108 2/25/2025
9.1.1-beta.196 62 2/25/2025
9.1.1-beta.195 56 2/25/2025
9.1.1-beta.194 56 2/25/2025
9.1.1-beta.193 60 2/25/2025
9.1.1-beta.192 67 2/24/2025
9.1.1-beta.191 61 2/24/2025
9.1.1-beta.190 189 2/19/2025
9.1.1-beta.189 61 2/19/2025
9.1.1-beta.188 63 2/19/2025
9.1.1-beta.187 75 2/19/2025
9.1.1-beta.183 74 2/18/2025
9.1.1-beta.182 71 2/18/2025
9.1.1-beta.181 74 2/18/2025
9.1.1-beta.180 70 2/17/2025
9.1.1-beta.178 63 2/17/2025
9.1.1-beta.177 88 2/12/2025
9.1.1-beta.176 72 2/11/2025
9.1.1-beta.175 67 2/11/2025
9.1.1-beta.173 71 2/10/2025
9.1.1-beta.169 63 2/6/2025
9.1.1-beta.168 59 2/5/2025