.NET

Dapr offers a variety of packages to help with the development of .NET applications. Using them you can create .NET clients, servers, and virtual actors with Dapr.

Prerequisites

Installation

To get started with the Client .NET SDK, install the Dapr .NET SDK package:

dotnet add package Dapr.Client

Try it out

Put the Dapr .NET SDK to the test. Walk through the .NET quickstarts and tutorials to see Dapr in action:

SDK samplesDescription
QuickstartsExperience Dapr’s API building blocks in just a few minutes using the .NET SDK.
SDK samplesClone the SDK repo to try out some examples and get started.
Pub/sub tutorialSee how Dapr .NET SDK works alongside other Dapr SDKs to enable pub/sub applications.

Available packages

Package NameDocumentation LinkDescription
Dapr.ClientDocumentationCreate .NET clients that interact with a Dapr sidecar and other Dapr applications.
Dapr.AIDocumentationCreate and manage AI operations in .NET.
Dapr.AI.A2aDapr SDK for implementing agent-to-agent operations using the A2A framework.
Dapr.AI.Microsoft.ExtensionsDocumentationEasily interact with LLMs conversationally and using tooling via the Dapr Conversation building block.
Dapr.AspNetCoreDocumentationWrite servers and services in .NET using the Dapr SDK. Includes support and utilities providing richer integration with ASP.NET Core.
Dapr.ActorsDocumentationCreate virtual actors with state, reminders/timers, and methods.
Dapr.Actors.AspNetCoreDocumentationCreate virtual actors with state, reminders/timers, and methods with rich integration with ASP.NET Core.
Dapr.Actors.AnalyzersDocumentationA collection of Roslyn source generators and analyzers for enabling better practices and preventing common errors when using Dapr Actors in .NET.
Dapr.CryptographyDocumentationEncrypt and decrypt streaming state of any size using Dapr’s cryptography building block.
Dapr.JobsDocumentationCreate and manage the scheduling and orchestration of jobs.
Dapr.Jobs.AnalyzersDocumentationA collection of Roslyn source generators and analyzers for enabling better practices and preventing common errors when using Dapr Jobs in .NET.
Dapr.DistributedLocksDocumentationCreate and manage distributed locks for managing exclusive resource access.
Dapr.Extensions.ConfigurationDapr secret store configuration provider implementation for Microsoft.Extensions.Configuration.
Dapr.PluggableComponentsUsed to implement pluggable components with Dapr using .NET.
Dapr.PluggableComponents.AspNetCoreImplement pluggable components with Dapr using .NET with rich ASP.NET Core support.
Dapr.PluggableComponents.ProtosNote: Developers needn’t install this package directly in their applications.
Dapr.MessagingDocumentationBuild distributed applications using the Dapr Messaging SDK that utilize messaging components like streaming pub/sub subscriptions.
Dapr.WorkflowDocumentationCreate and manage workflows that work with other Dapr APIs.
Dapr.Workflow.AnalyzersDocumentationA collection of Roslyn source generators and analyzers for enabling better practices and preventing common errors when using Dapr Workflows in .NET

More information

Learn more about local development options, best practices, or browse NuGet packages to add to your existing .NET applications.

Development

Learn about local development integration options

Best Practices

Learn about best practices for developing .NET Dapr applications

NuGet packages

NuGet packages for adding the Dapr to your .NET applications.