Which package for asp.net middleware
I want to write my own middleware for asp.net as a class library but I cannot access
HttpContext
, RequestDelegate
or IApplicationBuilder
.
Which package do I have to add to use those classes and interfaces?7 Replies
You can add this to your project file
Although it is deprecated?
Microsoft.AspNetCore.Mvc
?dont confuse nuget packages reference with framwork references,
Ah, the framework reference uses the build in stuff of the Web sdk?
as far as i know it will use the available version of the asp runtime that is available on your hosting machine
yeah thats what i meant
it seems to work, thanks