dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.58k stars 25.29k forks source link

Microsoft.AspNetCore.HttpOverrides mentioned in the doc is marked as deprecated #30534

Open xheox opened 1 year ago

xheox commented 1 year ago

Hi, The doc mentions the use of Microsoft.AspNetCore.HttpOverrides although it is marked as deprecated. What would be the preferred way going forward for hosting API in linux ? YARP ? Thanks


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

guardrex commented 1 year ago

Hello @xheox ... It's only depreciated for direct use. It's in the shared framework, which is supplied by the SDK. If you need to reference it for a library, see ...

https://learn.microsoft.com/en-us/aspnet/core/fundamentals/target-aspnetcore?view=aspnetcore-7.0&tabs=visual-studio#use-the-aspnet-core-shared-framework

The shared framework and .App metapackage are covered here ...

https://learn.microsoft.com/en-us/aspnet/core/fundamentals/metapackage-app?view=aspnetcore-7.0

You can see the list of packages in the .App metapackage on NuGet ...

https://www.nuget.org/packages/Microsoft.AspNetCore.App#dependencies-body-tab