Skip to content

Instantly share code, notes, and snippets.

@paulyuk
Last active February 27, 2024 18:31
Show Gist options
  • Save paulyuk/3bb71cba7f4f8bde4d5a63e022f27709 to your computer and use it in GitHub Desktop.
Save paulyuk/3bb71cba7f4f8bde4d5a63e022f27709 to your computer and use it in GitHub Desktop.
Create a Dapr dev environment with the latest OSS version

Find the latest release, including RC pre-releases on this page

https://github.com/dapr/dapr/releases

E.g. the latest full release is here:

https://github.com/dapr/dapr/releases/latest

The latest RC is here:

https://github.com/dapr/dapr/releases/tag/v1.13.0-rc.7

The suffix of the URL or the tag is the release that we'll explicitly install, e.g.

1.13.0-rc.7

Upgrade to the latest Dapr runtime

Standalone Dapr

dapr uninstall
dapr init --runtime-version=1.13.0-rc.7

Dapr in Kubernetes

dapr uninstall
dapr init -k --runtime-version=1.13.0-rc.7

Bring the latest SDK package into your repo or project

In .NET, the package releases are here:

https://github.com/dapr/dotnet-sdk/releases

e.g. the latest full release is here:

https://github.com/dapr/dotnet-sdk/releases/latest

e.g. the latest RC is here:

https://github.com/dapr/dotnet-sdk/releases/tag/v1.12.0-rc01

now match it up with the version on package manager site

https://www.nuget.org/packages/Dapr.Client/#versions-body-tab

once again the suffix or the tag is used to finally bring in the package

dotnet add package Dapr.Client --version v1.12.0-rc01

latest Dapr CLI is here

wget -q https://raw.githubusercontent.com/dapr/cli/v1.13.0-rc.1/install//install.sh -O - | /bin/bash -s 1.13.0-rc.1

Consider doing all of this on an isolated CodeSpace. You can use this repo directly,

Click Code button -> CodeSpaces -> +

or copy the /.devcontainer folder to any custom repo

https://github.com/paulyuk/dotnet-sdk/tree/client-console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment