• Stars
    star
    1,084
  • Rank 41,076 (Top 0.9 %)
  • Language
    C#
  • License
    Apache License 2.0
  • Created almost 5 years ago
  • Updated 10 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dapr SDK for .NET

Dapr SDK for .NET

Build Status codecov License: Apache FOSSA Status

Dapr SDK for .NET allows you to:

  • Interact with Dapr applications through a Dapr client
  • Build routes and controllers in ASP.NET
  • 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.

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.

Example

# 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

The docs for the Dapr .NET SDK can be found on the Dapr docs site.

Examples

Visit the examples folder for a variety of examples to get you up and running with the Dapr .NET SDK.

Contributing

This repo builds the following packages:

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

Prerequisites

Each project is a normal C# project. At minimum, you need .NET 6.0 SDK to build, test, and generate NuGet packages.

Also make sure to reference the .NET SDK contribution guide

macOS/Linux:

On macOS or Linux we recommend Visual Studio Code with the C# Extension. See here for a getting started guide for VS Code and .NET.

Windows:

On Windows, we recommend installing the latest Visual Studio 2019 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.

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

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

Each project can also be built individually directly through the CLI or your editor/IDE. You can open the solution file all.sln in repo root to load all sdk, samples and test projects.

More Repositories

1

dapr

Dapr is a portable, event-driven, runtime for building distributed applications across cloud and edge.
Go
23,175
star
2

quickstarts

Dapr quickstart code samples and tutorials showcasing core Dapr capabilities
Java
994
star
3

docs

Dapr user documentation, used to build docs.dapr.io
HTML
987
star
4

components-contrib

Community driven, reusable components for distributed apps
Go
525
star
5

go-sdk

Dapr SDK for go
Go
435
star
6

samples

Community driven repository for Dapr samples
JavaScript
393
star
7

cli

Command-line tools for Dapr.
Go
308
star
8

java-sdk

Dapr SDK for Java
Java
246
star
9

python-sdk

Dapr SDK for Python
Python
199
star
10

rust-sdk

Dapr SDK for Rust - Alpha
Rust
194
star
11

js-sdk

Dapr SDK for Javascript
JavaScript
187
star
12

dashboard

General purpose dashboard for Dapr
Go
172
star
13

community

Governance and community material for Dapr and its open source sub-projects
127
star
14

php-sdk

Dapr SDK for PHP
PHP
68
star
15

cpp-sdk

C++ SDK for Dapr
Makefile
36
star
16

installer-bundle

Dapr bundled installer containing CLI and runtime packaged together. This eliminated the need to download Docker images when initializing Dapr locally.
35
star
17

sig-api

Repository for Dapr API Special Interest Group
HTML
18
star
18

mechanical-markdown

Python
18
star
19

kit

Shared utility code for Dapr runtime
Go
17
star
20

helm-charts

Helm Charts for Dapr
16
star
21

proposals

Proposals for new features in Dapr
15
star
22

test-infra

Test apps and tools for Dapr
C#
14
star
23

setup-dapr

GitHub Action for installing the Dapr CLI
JavaScript
10
star
24

docs-zh

Chinese translation of the Dapr documentation
9
star
25

blog

HTML
5
star
26

website

Website for the Dapr project
HTML
5
star
27

sig-sdk-spec

Repository for Dapr SDk Spec Special Interest Group
3
star
28

homebrew-tap

Repository to enable Dapr cli installation via macOS' Homebrew.
Ruby
2
star
29

.github

1
star