khellang / MimeTypes

A simple lookup from file name/extension to MIME/media type, generated from mime-db, which in turn is compiled from IANA, Apache and nginx's MIME types.
Apache License 2.0
88 stars 22 forks source link

Warning: No compatible assemblies found in package 'MimeTypes'. #26

Open doggy8088 opened 3 months ago

doggy8088 commented 3 months ago

I try to install your package in my LINQPad. I see the following warning and I can't use your package in LINQPad. Can you check what's going on?

image

khellang commented 3 months ago

There's no assembly in the package. It's a source-only package where a single .cs file is included into your build when you install the package. It seems LINQpad doesn't handle these very well and this should probably be a feature request for the 😄

doggy8088 commented 3 months ago

I do asked in LINQPad forum here: https://forum.linqpad.net/discussion/3188/warning-no-compatible-assemblies-found-in-package-mimetypes

I think it's not possible to have MSBuild support in LINQPad.

alexeygritsenko commented 2 months ago

Hi, i have same issues in VS2022, ASP.NET API 4.8 project:

Error Could not install package 'MimeTypes 2.5.2'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.8', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

khellang commented 2 months ago

Weird. The package includes content files for both .NET Standard and .NET Framework, which should both be usable by .NET Framework 4.8:

image

Personally I've used it in multiple .NET Framework projects. It would be nice if you could submit a repro project.