Open akshaybabloo opened 1 year ago
I managed to get around this by doing:
ProblemDetailsExtensions.AddProblemDetails(services);
Instead of:
services.AddProblemDetails();
You can also use a using:
using ProblemDetailsOptions = Hellang.Middleware.ProblemDetails.ProblemDetailsOptions;
Just using:
using ProblemDetailsOptions = Hellang.Middleware.ProblemDetails.ProblemDetailsOptions;
Dot not resolve it for me. I had to do the ProblemDetailsExtensions.AddProblemDetails(services);
Trying to experiment with .Net 7 and I get this error when building it
I added it to my builder services like this:
Workes fine on .Net 6
This is a conflict with the newly introduced
AddProblemDetails
inMicrosoft.Extensions.DependencyInjection.ProblemDetailsServiceCollectionExtensions.AddProblemDetails
More info on their blog https://devblogs.microsoft.com/dotnet/asp-net-core-updates-in-dotnet-7-preview-7/#new-problem-details-service