MimeTypes icon indicating copy to clipboard operation
MimeTypes copied to clipboard

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

Open doggy8088 opened this issue 1 year ago • 4 comments

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

doggy8088 avatar May 19 '24 07:05 doggy8088

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 😄

khellang avatar May 19 '24 18:05 khellang

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.

doggy8088 avatar May 31 '24 16:05 doggy8088

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.

alexeygritsenko avatar Jun 13 '24 13:06 alexeygritsenko

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.

khellang avatar Jun 14 '24 14:06 khellang