CommunityToolkit.Aspire.Hosting.Dapr 9.1.1-beta.178

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.1.1-beta.178                
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Dapr -Version 9.1.1-beta.178                
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.1.1-beta.178" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CommunityToolkit.Aspire.Hosting.Dapr --version 9.1.1-beta.178                
#r "nuget: CommunityToolkit.Aspire.Hosting.Dapr, 9.1.1-beta.178"                
#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.
// Install CommunityToolkit.Aspire.Hosting.Dapr as a Cake Addin
#addin nuget:?package=CommunityToolkit.Aspire.Hosting.Dapr&version=9.1.1-beta.178&prerelease

// Install CommunityToolkit.Aspire.Hosting.Dapr as a Cake Tool
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.Dapr&version=9.1.1-beta.178&prerelease                

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/

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.1.1-beta.190 47 2/19/2025
9.1.1-beta.189 38 2/19/2025
9.1.1-beta.188 39 2/19/2025
9.1.1-beta.187 42 2/19/2025
9.1.1-beta.183 49 2/18/2025
9.1.1-beta.182 46 2/18/2025
9.1.1-beta.181 46 2/18/2025
9.1.1-beta.180 44 2/17/2025
9.1.1-beta.178 41 2/17/2025
9.1.1-beta.177 53 2/12/2025
9.1.1-beta.176 44 2/11/2025
9.1.1-beta.175 38 2/11/2025
9.1.1-beta.173 42 2/10/2025
9.1.1-beta.169 39 2/6/2025
9.1.1-beta.168 34 2/5/2025