dotnet / dotnet/aspnetcore

Move ProblemDetails outside of Asp.Net Core

Open
#58,551 12 comments 36 reactions 0 assignees View on GitHub
area-mvc feature-problem-details
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

When creating a C# client library for an API which uses ProblemDetails currently the best solution I can find is to include a FrameworkReference to Asp.NetCore in that client library.

Of course you can generate or hand write a ProblemDetails class for the client project but it gets tedious with inheritence for custom problem details.

### Describe the solution you'd like

I would like ProblemDetails to be available outside of asp.net core. Maybe somewhere near HttpClient or somewhere in the BCL? Or a NuGet package (possibly not as I understand the asp.net project would not like to have NuGet dependencies)?

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.