Contents
As you have SharePoint installed on the development machine (you must), hit Browse… on the Add reference dialog, and you can find the DLL from C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\ISAPI .
How do I add a reference in SharePoint?
Select Configuration > SharePoint. In the SharePoint Reference Sets page, click the reference set to which you want to add a reference. In the References page, click Add.
Showing the top 1 NuGet packages that depend on Microsoft.SharePoint.dll: Package. Downloads. Kraken.SPSandboxLibrary. Kraken is a battle tested library for developing SharePoint applications that’s been around since before 2010 and is used in many projects.
How do I add a DLL reference in Visual Studio code?
Steps
- Launch Visual Studio Code.
- Open your project folder.
- Launch VS Code Command Palette by pressing F1 or Ctrl+Shift+P or Menu Bar > View > Command Palette.
I copied the dlls from “C:\\Program Files\\Common Files\\microsoft shared\\Web Server Extensions\\15\\ISAPI” folder and pasted in the project’s bin folder and add reference to it. I can see all 3 dll’s under project’s reference folder in solution explorer.
Where to find Assembly microsoft.sharepoint.dll?
As you have SharePoint installed on the development machine (you must), hit Browse… on the Add reference dialog, and you can find the DLL from C:\\Program Files\\Common Files\\microsoft shared\\Web Server Extensions\\14\\ISAPI.
Could not install package ‘Microsoft.SharePoint.dll 15.0.4867.1000’. You are trying to install this package into a project that targets ‘.NETFramework,Version=v4.5’, but the package does not contain any assembly references or content files that are compatible with that framework.
Can you use SharePoint on a development machine?
You can also copy the DLL from that folder to your development machine, and reference it there, but you cannot really do much development work unless you have Visual Studio and SharePoint on same machine. You can find instructions for installing SP on dev box here.