I've been googling around a while, but failed to find a proper answer.
My project contains two libraries:
LibA - .NET standard 2.0
LibB - .NET Framework 4.7, which contains some nuget package
I'm referencing (via Project ref) LibB from LibA (i.e. my goal is to use LibB from LibA). Everything works well if LibB uses packages.config file, but nuget restore fails once I turn to package references in LibB csproj. It gives NU1201, saying that
Project LibB is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Project LibB supports: net47 (.NETFramework,Version=v4.7)
Is there any known workaround or this is a VS bug or it just works as designed (I've heard packages.config way skips compatibility check during restore).