Cannot install package, VS 2017

This may be a dumb question, but I keep getting this error when I try to install the .NET package. What should I do?

“Install-Package : Could not install package ‘contentful.csharp 4.1.1’. You are trying to install this package into a project that targets ‘.NETFramework,Version=v4.0’, 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.”

1 Like

Did you manage to solve this? I am facing the same problem…

Hi, the .NET SDK targets .NET Standard 2.0 which means that the lowest possible full framework version to use is 4.6.1. If you upgrade your solution to at least this target framework it should work fine.

You can read more about .NET Standard and compatibility here:

1 Like