samuelneff / MimeTypeMap

Provides a huge dictionary of file extensions to mime types.
MIT License
625 stars 201 forks source link

NU1701 Package 'Google.GData.Extensions 2.2.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project. #119

Open yadavsudhir327 opened 3 years ago

yadavsudhir327 commented 3 years ago

Hi team, I would like to know how can I fix this warning, as the functionality is working fine.

markusschaber commented 3 years ago

I'm not sure what this problem has to do with MimeTypeMap, but maybe you should ask the authors of Google.GData.Extensions package to provide a Version for ".NETCoreApp 3.1" or "netstandard" target frameworks?

sommmen commented 2 years ago

@markusschaber I'm getting the same issue when referencing the package directly in my project. Basically means the package does not target .net6 and hence the warning.

Could you update and release a version for net6? its the stable long term release and it will hide the warning .

Severity Code Description Project File Line Suppression State Warning NU1701 Package 'MediaTypeMap 2.1.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project. MyApp C:\Repos\MyApp\MyApp.csproj 1

sommmen commented 2 years ago

Also see: https://github.com/samuelneff/MimeTypeMap/pull/128