I have a .Net Standard 2.0 class library project created in Visual Studio 2017, to which I generate a NuGet package (by checking the "Generate NuGet Package on Build" option in the project properties). I have another project which targets .Net Framework 4.6.1 and I want it to reference my NuGet package. When I do, I get the following error:
You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author
(The funny thing is that I'm the package author... :-) )
Note that if I reference the DLL directly it works without a problem. It's just when I try to add the reference as a NuGet package that I get this error.
Any help is appreciated...