Stefan Goßner

Senior Escalation Engineer for SharePoint (WSS, SPS, MOSS, SP2010) and MCMS

How to add the SharePoint 2010 dlls to the references in Visual Studio

How to add the SharePoint 2010 dlls to the references in Visual Studio

  • Comments 1
  • Likes

With SharePoint 2007 the DLLs in the 12-hive\ISAPI directory (e.g. Microsoft.SharePoint.dll) showed up on the .NET tab in Visual Studio which allowed easy adding of these references to your projects.

If you install SharePoint 2010 you will notice that these DLLs are no longer listed on the .NET tab which means that you have to use the Browse option and have to navigate manually to the directory holding these DLLs which can be time consuming.

Visual Studio uses a registry key to identify the DLLs it should look into for DLLs to list in the .NET tab.

So to change this behavior you only have to use the following steps:

  1. using Registry Editor open the following key:

    HKLM\Software\Microsoft\.NETFramework\AssemblyFolders

  2. create a new key inside with name "SharePoint"
  3. change the data of the (Default) value to "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\"

After you restart Visual Studio you will now see the SharePoint DLLs showing up in the .NET tab

Comments
  • @Waldekm & co have a codeplex project that extends VS2010 to show a SharePoint tab too. They are currently amalgamating a few projects into CKS:Dev and will be released soon.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
Raw Html Fix