Skip to content

Updated all .NET quickstarts#1332

Open
WhitWaldo wants to merge 11 commits into
dapr:masterfrom
WhitWaldo:dotnet-updates
Open

Updated all .NET quickstarts#1332
WhitWaldo wants to merge 11 commits into
dapr:masterfrom
WhitWaldo:dotnet-updates

Conversation

@WhitWaldo

Copy link
Copy Markdown
Contributor

Description

Updated all the .NET quickstarts to use the latest 1.18.2 package.

Further, I went through all the projects to update them to use modern C# syntax and shape.

Several of the projects were also updated to specifically reflect how to implement new SDK functionality with the 1.18 release:

  • Secrets
  • State Management
  • Workflows

No operational changes to what the quickstarts do - just modernizing to reflect the latest best practices.

Issue reference

We strive to have all PRs being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #[issue number]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • The quickstart code compiles correctly
  • You've tested new builds of the quickstart if you changed quickstart code
  • You've updated the quickstart's README if necessary
  • If you have changed the steps for a quickstart be sure that you have updated the automated validation accordingly. All of our quickstarts have annotations that allow them to be executed automatically as code. For more information see mechanical-markdown. For user guide with examples see Examples.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
…dernization changes throughout .NET projects.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
… modern syntax and the latest Dapr SDK capabilities.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
@WhitWaldo WhitWaldo self-assigned this Jun 14, 2026
@WhitWaldo
WhitWaldo requested review from a team as code owners June 14, 2026 04:30
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
marcduiker
marcduiker previously approved these changes Jun 14, 2026

@marcduiker marcduiker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

@alicejgibbons alicejgibbons left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one CI error and a couple of questions :)

value: secrets.json
- name: nestedSeparator
value: ":"
- name: secretsFile

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/dapr/quickstarts/actions/runs/27979266465/job/85352537421?pr=1332#step:15:839

CI doesn't like this file anymore @WhitWaldo, looks like a special character made it in here.

</PropertyGroup>

<ItemGroup>
<PackageReference Include="Dapr.AspNetCore" Version="1.18.1" />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dapr.AspNetCore not needed here anymore? Would it not be better to use this than the hosting package?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's correct. Dapr.AspNetCore isn't being deprecated, but there is increasingly no reason to use it unless you're using legacy functionality. As quickstarts are intended to introduce ideas to new (or existing) users, I want to set users on the right course instead of starting from a not-quite-but-mostly deprecated path.

Comment thread secrets_management/csharp/sdk/order-processor/secrets.json
app.MapPost("/start", async (
string[] input,
DaprWorkflowClient workflowClient) =>
[FromServices] DaprWorkflowClient workflowClient) =>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This [FromServices] decorator is the recommended way to create all clients now?

Comment thread secrets_management/csharp/sdk/order-processor/secrets.json Outdated
Signed-off-by: Alice Gibbons <alicejgibbons@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants