MimeTypeExtension 1.0.29

.NET 6.0 .NET Core 3.1 .NET Standard 2.0
dotnet add package MimeTypeExtension --version 1.0.29
NuGet\Install-Package MimeTypeExtension -Version 1.0.29
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MimeTypeExtension" Version="1.0.29" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MimeTypeExtension --version 1.0.29
#r "nuget: MimeTypeExtension, 1.0.29"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MimeTypeExtension as a Cake Addin
#addin nuget:?package=MimeTypeExtension&version=1.0.29

// Install MimeTypeExtension as a Cake Tool
#tool nuget:?package=MimeTypeExtension&version=1.0.29


Extension for FileInfo. Returns the matching MIME type of a file.

Json Serialization

Internally, the JSON resources are serialized with the following great tool: https://github.com/smourier/ZeroDepJson




FileInfo fi = new FileInfo("test.jpg")
string mimeType = fi.MimeType();
Uri url = new Uri("http://localhost/test.jpg")
string mimeType = url.MimeType();

try it out with Fiddler

For whom the currently 894 MIME types are not enough. Can store own MIME types. The static function AddOrUpdateMimeType is now available for this. With this function you can change existing MIME types or add new ones.

var result = MimeTypeExtension.AddOrUpdateMimeType(".aa", "audio/audible");

Supported MIME-Types


Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on MimeTypeExtension:

Package Downloads

Package Description




Package Description


A little easy http-Server


Monitoring Extension

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.29 16,293 12/19/2022
1.0.28 14,628 7/7/2021
1.0.27 277 7/6/2021
1.0.26 612 7/3/2021
1.0.25 382 7/3/2021
1.0.24 343 4/13/2021
1.0.23 2,421 11/23/2020
1.0.2 766 9/14/2020
1.0.1 2,947 2/28/2020
1.0.0 800 4/8/2019

adding net6.0 remove net5.0