DEV Community

xarzu
xarzu

Posted on

My .NetFramework version does not work with my Microsoft.SharePointClient.dll version. Which version should I use?

My .NetFramework version does not work with my Microsoft.SharePointClient.dll version. Which version should I use?

I am trying to add some CSOM functionality to my C# program such that I will be allowed to do CRUD operations on a Microsoft List (aka SharePoint List). Assuming you know what CSOM and CRUD is, I will not bore you with the details of the specifics. The end result of adding the references to the DLLS and the proper namespace, I get an error in my IDE:

"Could not install package 'Microsoft.SharePoint.Client.dll
15.0.4420.1017'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2', 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."

And so, I have two questions:

What .NetFramework version is compatible with Microsoft.SharePoint.Client.dll 15.0.4420.1017 ?
(question 1)

What Microsoft.SharePoint.Client.dll version is compatible with .NETFramework Version=v4.7.2 ?
(question 2)

Top comments (0)