Where Are the SharePoint Client Assemblies?

If you're reading this post, you probably know that SharePoint 2010 provides client-side APIs for Silverlight apps, managed .NET clients, and JavaScript code. However, the assemblies you need in order to start developing SharePoint client apps can be elusive at first. In particular, the Silverlight assemblies aren't where you might expect. All the assemblies and JavaScript libraries that you need for client-side development are deployed to folders beneath the SharePoint root when you install SharePoint 2010. For the record, here's where you can find them.

  • If you’re developing a managed .NET client application—for example, a WPF application—you need to add references to Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.Runtime.dll. You can find them in the 14\ISAPI folder on your SharePoint server.

  • If you’re developing a Silverlight application, you need to add references to Microsoft.SharePoint.Client.Silverlight.dll and Microsoft.SharePoint.Client.Silverlight.Runtime.dll. You can find them in the 14\TEMPLATE\LAYOUTS\ClientBin folder on your SharePoint server.

  • If you’re writing JavaScript code, you can find SP.js and all the other SharePoint JavaScript libraries in the 14\TEMPLATE\LAYOUTS folder.

I hope this saves someone the trouble of trawling the SharePoint root looking for assemblies!

Update 10th March 2011: I keep reading that the Silverlight client assemblies are in the 14\ISAPI\ClientBin folder. This folder doesn't exist in any of my installations.

Comments

Popular posts from this blog

Server-side activities have been updated

The target principal name is incorrect. Cannot generate SSPI context.

Custom Workflow Activity for Creating a SharePoint Site