Skip to content

ProblemDetails in ASP.NET Core: new net10.0 sample - #2246

Merged
vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/57721-using-the-problemdetails-class-in-asp-net-core-web-api
Oct 4, 2026
Merged

vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/57721-using-the-problemdetails-class-in-asp-net-core-web-api

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

New sample folder aspnetcore-webapi/ProblemDetailsInAspNetCore for the article "Using the ProblemDetails Class in ASP.NET Core Web API" (https://code-maze.com/using-the-problemdetails-class-in-asp-net-core-web-api/).

  • net10.0 minimal API (PizzaShop.Api): AddProblemDetails() with CustomizeProblemDetails, AddValidation(), UseExceptionHandler(), UseStatusCodePages(), TypedResults.Problem() via a small Result type
  • PizzaShop.Api.Tests: 5 integration tests (Mvc.Testing 10.0.12, xunit.v3.mtp-off 4.0.1)
  • Classic ProblemDetails.sln
  • Replaces the old net5.0 Hellang sample in CodeMazeBlog/problemdetails-class-aspnetcore, which stays as it is

Build: 0 warnings, 0 errors. Tests: 5 passed.

@vladimir-pecanac-main
vladimir-pecanac-main merged commit 14edbf7 into CodeMazeBlog:main Oct 4, 2026
4 checks passed
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.

1 participant