SharePoint : How to add a reference from C#

情到浓时终转凉″ 提交于 2020-01-05 05:37:10

问题


How do I add a reference to SharePoint 2007 from C#. What is the name and location of the DLL please?


回答1:


You can find the dll here @ this location C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\ISAPI\Microsoft.SharePoint.dll, Adding the reference you need to right click Reference in the VS Project select the above location and add it.




回答2:


If you are using source control, I would put your Microsoft.SharePoint.dll DLL into a seperate folder named something like lib, along with your other 3rd party DLLs, and add your project references to there. That way, when a developer gets the source code, the references won't be broken if their environment is set up differently.




回答3:


The name of the base SharePoint DLL is

Microsoft.SharePoint.dll

and it's normally located in

c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI



来源:https://stackoverflow.com/questions/1333855/sharepoint-how-to-add-a-reference-from-c-sharp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!