Which dll client version should I use to connect to both Sharepoint 2010 and Sharepoint 2013?

I have a web project that should consume both On-premise Sharepoint 2010 and Sharepoint 2013.

So, we have two different versions of the following dlls :

  • Microsoft.SharePoint.Client V 14.0.0.0
  • Microsoft.SharePoint.Client.Runtime V 14.0.0.0
  • Microsoft.SharePoint.Client V 16.0.0.0
  • Microsoft.SharePoint.Client.Runtime V 16.0.0.0

Which version of dll should I safely use to consume the API from two different server versions?

Replay

I don't believe there is any common DLL which you can use for common development for SharePoint 2010 and SharePoint 2013.

So, If you are working with SharePoint 2010 then you must use

  • Microsoft.SharePoint.Client V 14.0.0.0
  • Microsoft.SharePoint.Client.Runtime V 14.0.0.0

And If you are working with SharePoint 2013 then you must use

  • Microsoft.SharePoint.Client V 15.0.0.0
  • Microsoft.SharePoint.Client.Runtime V 15.0.0.0

While

  • Microsoft.SharePoint.Client V 16.0.0.0
  • Microsoft.SharePoint.Client.Runtime V 16.0.0.0

is for SharePoint 2016 and SharePoint Online

I Just used below

Microsoft.SharePoint.Client.dll V 16.1.5026.1200
Microsoft.SharePoint.Client.Runtime.dll 16.1.5026.1200

and its working fine for SharePoint 2010,2013 and Online.

Up To my knowledge latest dll will be compatible with all.

Category: client object model Time: 2016-07-28 Views: 1

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 4.174 (s). 13 q(s)