MANAGED CODE (.NET)

In SharePoint 2010 Microsoft provided a version of the managed code CSOM for developers of .NET applications. This library has been rebuilt for SharePoint 2013 and is provided as part of the SharePoint installation. As in the 2010 release, it is provided as part of a redistributable package for developers to include in their applications.

It is made up of the following .NET assemblies:

  • Microsoft.SharePoint.Client.Runtime.dll
  • Microsoft.SharePoint.Client.dll
  • Microsoft.SharePoint.Client.DocumentManagement.dll
  • Microsoft.SharePoint.Client.Publishing.dll
  • Microsoft.SharePoint.Client.Taxonomy.dll
  • Microsoft.SharePoint.Client.UserProfiles.dll
  • Microsoft.SharePoint.WorkflowServices.Client.dll

Later in this chapter you learn about which parts of the CSOM are in what DLL and namespace, but the naming of the DLLs should also give you a few hints.

Setup

You can install the DLLs on any computer by downloading the SharePoint Client Components SDK available at: http://www.microsoft.com/en-us/download/details.aspx?id=30355.

Additionally you can find them in the following location on a machine with SharePoint installed, as shown in Figure 9-1:

%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\ISAPI

After you have added references to these DLLs from your .NET application such as a Windows Forms application or console application, you can add a ...

Get Beginning SharePoint 2013 Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.