If you install SharePoint 2010 you will notice that these DLLs are no longer listed on the .NET tab, the only option for us is to use the browse option and to navigate manually to the directory where these DLLs are stored, which can be pain.
Visual Studio uses a registry key to identify the Sharepoint DLL’s.
Below are the very simple steps to get you up to speed
- Using RegEdit (if you are the local admin to your machine), open the registry editor navigate to the following key: HKLM\Software\Microsoft\.NETFramework\AssemblyFolders
- Create a new Key inside name as mentioned “SharePoint”
- Change the (Default) value to “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\” ( without quotes)
- Restart Visual Studio SharePoint DLLs will show up in the .NET tab
- Close the registry Editor
- Navigate to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\, if the directory does not exist, create the same.
- Go to the Sharepoint server copy all the Sharepoint related DLL’s, and paste it in the directory mentioned above
- Now go to your Sharepoint webpart or project, you should be able to refernce the sharepoint dll’s from the above directory