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
93 stars 23 forks source link

Explicit namespaces #13

Closed labtox closed 3 years ago

labtox commented 3 years ago

Hello,

I try to use this package in Xamarin.Android, but I get build errors because of namespace issues. image

If I edit the code file manually like this. it works: image I just prepended all the using statements at the top with "global::"

Another fix which works for me is moving the using statements out of the namespace declaration, like so: image

If you could fix this one way or another, that would be awesome!

Regards, labtox

khellang commented 3 years ago

Hello @labtox! 👋🏻

Pushed v2.1.4 with a fix to NuGet 😄

khellang commented 3 years ago

I wonder why I haven't seen this before? Do you have an AppCore.System namespace?

labtox commented 3 years ago

Actually, we do have that namespace 😅 that's probably the case here

Thanks a lot for the quick response and fix 👍

labtox commented 3 years ago

One minor question... Is there a reason it's pushed to 2.1.4, while there is also a 2.2.0 version available?

khellang commented 3 years ago

Ummm. That's weird. I might've pushed a version 2.2.0 earlier, but somehow forgotten to push the tag and version bump commit? 🤔 I'll push a v2.2.1 as well, so it's the latest 😅