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

Using MimeTypes in .net standard 2.0 Project triggers CS8370 Error #22

Closed IcoDeveloper closed 8 months ago

IcoDeveloper commented 1 year ago

When adding MimeTypes to a .net standard 2.0 Project, Compile Error:

CS8370 "Feature 'nullable reference types' is not available in C# 7.3. Please use language version 8.0 or greater"

.net Standard 2.0 is unfortunately locked to max language level 7.3

Using Version 1.1.0 , which does not yet have the

nullable enable

line works.