Contentful logo

Contentful Community

Cannot install package, VS 2017

#1

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

#2

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

0 Likes

#3

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: https://docs.microsoft.com/en-us/dotnet/standard/net-standard

1 Like