I am working on a .NET CLI application that should reference a third-party NuGet package that has not been published for the purpose netcoreappX.X. I launched the Analyze Project Portability tool and got the 100% compatibility that is expected since it is a relatively simple library.
The problem comes in the form of this annoying NuGet warning:
Warning: NU1701
Package "XXXXXX 1.0.0" was restored using ".NETFramework, Version = v4.6.1" instead of the target target platform ".NETCoreApp, Version = v2.0". This package may not be compatible with your project.
Is there a way to hide this warning for a specific NuGet package?
source
share