Dapr SDK for .NET
Go to file
Young Bu Park acb6ca75ea
upgrade to 0.6.0-preview02 (#82)
2019-10-08 17:41:19 -07:00
docs Change the http app channel port env var to DAPR_HTTP_PORT (#79) 2019-10-07 20:33:13 -07:00
properties upgrade to 0.6.0-preview02 (#82) 2019-10-08 17:41:19 -07:00
samples Fixing aspnetcore controller sample (#75) 2019-10-07 20:29:43 +00:00
src Change the http app channel port env var to DAPR_HTTP_PORT (#79) 2019-10-07 20:33:13 -07:00
test Fixing aspnetcore samples (#71) 2019-10-06 16:41:42 +00:00
.gitignore Add Actions Client and ASP.NET Core integration (#61) 2019-10-04 22:11:59 -07:00
LICENSE Initial commit 2019-06-21 08:52:56 -07:00
README.md Rename Actions to Dapr (#76) 2019-10-07 16:33:01 -07:00
azure-pipelines.yml Rename Actions to Dapr (#76) 2019-10-07 16:33:01 -07:00
code.sln Fixing non-remoting call request-response & building Dapr.Client for netcore 3.0 (#69) 2019-10-05 23:07:35 +00:00

README.md

Dapr SDK for .NET

Dapr is a programming model for writing cloud-native applications which are distributed, dynamically scaled, and loosely coupled in nature.

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:

  • Microsoft.Dapr.Actors
  • Microsoft.Dapr.Actors.AspNetCore

Getting Started

Prerequesites

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

We recommend installing Visual Studio 2019 v16.3 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](https://dotnet.microsoft.com/download/visual-studio-sdks).

Build

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

# Build SDK
dotnet build -c Debug  # for release, -c Release

# Run unit-test
dotnet test

# Generate nuget packages in /bin/Debug/
dotnet pack

Each project can also be built individually directly through Visual Studio.

Releases

Until we publish nuget packages to nuget.org, you can download the latest nuget packages signed by Microsoft from Preview Kit release.

Add nuget to your project

Assume that you download nuget packages to you local disk, /pkg/nugets/.

# Add Microsoft.Dapr.Actors nuget package
dotnet add package Microsoft.Dapr.Actors -v 0.4.0-preview01 -s /pkg/nugets/

# Add Microsoft.Dapr.Actors.AspNetCore nuget package
dotnet add package Microsoft.Dapr.Actors.AspNetCore -v 0.4.0-preview01 -s /pkg/nugets/

Documentation

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