I was using the nuget package sqlite-net-pcl in my .Net Core 1.0 project which was working without any problems (the .Net Standard 1.1 version was used of the package). Now, I upgraded this project to .Net Core 2.0 and suddenly I'm getting these build warnings:
1>C:\Projects\Project.csproj : warning NU1701: Package 'SQLitePCLRaw.lib.e_sqlite3.linux 1.1.5' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
1>C:\Projects\Project.csproj : warning NU1701: Package 'SQLitePCLRaw.lib.e_sqlite3.osx 1.1.5' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
1>C:\Projects\Project.csproj : warning NU1701: Package 'SQLitePCLRaw.lib.e_sqlite3.v110_xp 1.1.5' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
Obviously, my .Net Core 2.0 project is now using the .Net Framework 4.6.1 version of the nuget package, even if there's a .Net Standard 1.1 version available. I know that with .Net Core 2.0 this is possible, but I also know that this doesn't always work because of compatibility reasons, so why doesn't nuget just use the .Net Standard 1.1 versions which will actually work and how can I force that to eliminate the warnings?