microsoft / microsoft/aspire

Disable ConfigureAwait analyzer in server projects with no sync context.

Open
#1,511 0 comments 0 reactions 0 assignees View on GitHub
area-dashboard
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 12h
Merged PRs (30d)
201

Description

ASP.NET Core API apps (i.e. only host RESTful or gRPC services) don't have a sync context. The analyzer can be disabled for those projects. The hosting web app is an example.

Blazor Server does have a sync context - https://learn.microsoft.com/en-us/aspnet/core/blazor/components/synchronization-context?view=aspnetcore-8.0. The dashboard should continue to use the analyzer.

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the analyzer configuration for the hosting web app and dashboard projects. Confirm which projects are ASP.NET Core REST or gRPC services without a synchronization context, keep the analyzer enabled for Blazor Server and the dashboard, and verify the resulting project configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, grpc
Domain
backend, tooling
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.