MimeTypeExtension 1.0.29
See the version list below for details.
dotnet add package MimeTypeExtension --version 1.0.29
NuGet\Install-Package MimeTypeExtension -Version 1.0.29
<PackageReference Include="MimeTypeExtension" Version="1.0.29" />
paket add MimeTypeExtension --version 1.0.29
#r "nuget: MimeTypeExtension, 1.0.29"
// 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);
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 | Versions 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. |
-
.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.
adding net6.0 remove net5.0