Can't access httpcontext extension methods in .net standard
问题 I have this .NET Standard library where I want to write a .NET Core middleware. Inside which I want to do : Endpoint endpoint = httpContext.GetEndpoint(); The GetEndpoint() extension method can't be resolved. I have referenced Microsoft.AspNetCore.Http and I have both Microsoft.AspNetCore.Http.Abstractions and Microsoft.AspNetCore.Mvc.Core packages added to the project. Is there a solution to this, am I missing something? 回答1: I assume you're writing a middleware for ASP.NET Core 3.1 since