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)

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay