I feel like a) I should know the answer already and b) this would be a common question, but I can't find the answer.
I want to use Microsoft.AspNetCore.Http.HttpRequest
in a .NET Standard 2.0 class library project. Ok, I guessed I might need the Microsoft.AspNetCore
package, but no that class isn't in any assembly in there apparently.
I can go on MSDN and see that the HttpRequest
class is in
Namespace:
Microsoft.AspNetCore.Http
Assembly:
Microsoft.AspNetCore.Http.Abstractions.dll
So how do I find the package that holds Microsoft.AspNetCore.Http.Abstractions.dll
?
I'm asking for the methodology, not just the package.
From within Visual Studio, you can open the Nuget Package Manager and search for the class you want to use and the results will populate with the package you need.
Unfortunately, it doesn't seem Microsoft has provided a way to see exactly what assemblies are included in a package, but the publisher will sometimes include that information in the package description, like Microsoft has in the example below:
You could try:
https://www.nuget.org/packages?q=Microsoft.AspNetCore.Http.Abstractions
The result is:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With