MimeTypeExtension 1.0.29

There is a newer version of this package available.
See the version list below for details.
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

MimeTypeExtension

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

NuGet:

https://www.nuget.org/packages/MimeTypeExtension

Usage

FileInfo fi = new FileInfo("test.jpg")
string mimeType = fi.MimeType();
Console.WriteLine(mimeType);
Uri url = new Uri("http://localhost/test.jpg")
string mimeType = url.MimeType();
Console.WriteLine(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

https://github.com/ITAgnesmeyer/MimeTypeExtension/blob/master/SRC/MimeTypeExtension/otherTypes.json

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-browser 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)
Included target framework(s) (in package)
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
Diga.WebView2.WinForms

Package Description

Diga.NativeControls.WebBrowser

Diga.NativeControls.WebBrowser.Core

Diga.WebView2.Wpf

Package Description

EasyHttpServer

A little easy http-Server

Diga.WebView2.Monitoring

Monitoring Extension

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.30 1,422 12/20/2023
1.0.29 24,356 12/19/2022
1.0.28 15,453 7/7/2021
1.0.27 289 7/6/2021
1.0.26 634 7/3/2021
1.0.25 393 7/3/2021
1.0.24 354 4/13/2021
1.0.23 2,663 11/23/2020
1.0.2 807 9/14/2020
1.0.1 3,069 2/28/2020
1.0.0 820 4/8/2019

adding net6.0 remove net5.0