I am upgrading an old ASP.NET Core 2.2
app to .NET 6
I was able to upgrade every package, however there is one that I'm missing:
Microsoft.AspNetCore.StaticFiles
This package seems to be unmaintained, in fact the last available version on NuGet is 2.2.0, which is marked as deprecated.
I checked my app's code and the only class I am using from this package is the FileExtensionContentTypeProvider
class, which I use to translate file extensions to the corrisponding MIME type.
My question is: can this class be found elsewhere in a non-deprecated and up-to-date package? And if not, is there an non-deprecated equivalent that provides the same functionality (file extension to MIME type translation)?