Dapr SDK for .NET
Go to file
Lars Gyrup Brink Nielsen 9f7b2591b7
docs: fix InvokeAsync example in get started guide (#333)
Add generic request type to `InvokeAsync` command.

Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
2020-06-15 12:12:57 -07:00
.github Using dotnet sdk 3.1.102 2020-03-14 20:21:47 -07:00
docs docs: fix InvokeAsync example in get started guide (#333) 2020-06-15 12:12:57 -07:00
properties Updating version to 0.8.0 2020-06-04 13:25:03 -07:00
samples cli -p is now -d (#325) 2020-06-08 13:45:23 -07:00
src Update to sdk for changes in proto for bidirectional binding in runtime (#320) 2020-06-03 11:10:08 -07:00
test Update to sdk for changes in proto for bidirectional binding in runtime (#320) 2020-06-03 11:10:08 -07:00
.editorconfig git gui, ading editor config and removing depenency on StyleCop.Analyzers (#228) 2020-02-18 13:21:12 -08:00
.gitignore ADding launchsettings.json to user port for local launch (#111) 2019-10-17 17:57:48 -07:00
CONTRIBUTING.md Adding contribution guidance and fixing typo in readme (#107) 2019-10-15 18:08:37 -07:00
LICENSE Updating license to MIT in all .cs files. (#81) 2019-10-08 14:54:46 -07:00
README.md Update README.md (#286) 2020-04-16 10:08:04 -07:00
all.sln Secret Store configuration provider implementation for Microsoft.Extensions.Configuration (#238) 2020-03-18 10:43:19 -07:00
azure-pipelines.yml Secret Store configuration provider implementation for Microsoft.Extensions.Configuration (#238) 2020-03-18 10:43:19 -07:00

README.md

Dapr SDK for .NET

Dapr is a portable, event-driven, serverless runtime for building distributed applications across cloud and edge.

Build Status Gitter License: MIT

Dapr SDK for .NET allows you to implement the Virtual Actor model, based on the actor design pattern. This SDK can run locally, in a container and in any distributed systems environment.

This repo builds the following packages:

  • Dapr.Client
  • Dapr.AspNetCore
  • Dapr.Actors
  • Dapr.Actors.AspNetCore
  • Dapr.Extensions.Configuration

Getting Started

Prerequesites

Each project is a normal C# Visual Studio 2019 project. At minimum, you need .NET Core SDK 3.1 to build and generate NuGet packages.

We recommend installing Visual Studio 2019 v16.4 or later which will set you up with all the .NET build tools and allow you to open the solution files. Community Edition is free and can be used to build everything here. Make sure you update Visual Studio to the most recent release. To find a version of .NET Core that can be used with earlier versions of Visual Studio, see .NET SDKs for Visual Studio.

Solution Files

The repo currently has 4 solution files:

  • all.sln: This includes all the sdk product, test and samples project files.
  • src/prod.sln: This includes all the product project files.
  • samples/samples.sln: This includes all the sample projects files dependencies project files.
  • test/test.sln: This includes all the test projects and dependencies project files.

Build

To build everything and generate NuGet packages, run dotnet cli commands. Binaries and NuGet packages will be dropped in a bin directory at the repo root.

# Build sdk, samples and tests.
dotnet build -c Debug  # for release, -c Release

# Run unit-test
dotnet test test/test.sln

# Generate nuget packages in /bin/Debug/nugets
dotnet pack src/prod.sln

Each project can also be built individually directly through Visual Studio. You can open the solution file all.sln in repo root to load all sdk, samples and test projects.

Releases

We publish nuget packages to nuget.org for each release.

Using nugets built locally in your project

<RepoRoot> is the path where you cloned this repository. Nuget packages are dropped under /bin/<Debug|Release>/nugets when you build locally.

Examples:

# Add Dapr.Actors nuget package
dotnet add package Dapr.Actors -s <RepoRoot>/bin/<Debug|Release>/nugets

# Add Dapr.Actors.AspNetCore nuget package
dotnet add package Dapr.Actors.AspNetCore -s <RepoRoot>/bin/<Debug|Release>/nugets

Documentation

These articles will help get you started with Dapr runtime and Dapr Actors: