如何在其他系统中使用microsoft.sharepoint.dll开发的插件
how to use addin developed with microsoft.sharepoint.dll in other system
我在 vs2013 中开发了一个 outlook 插件。开发机器安装了共享点。我的代码有:
using Microsoft.SharePoint;
但是当我在客户端机器上 运行 这段代码时,它显示错误。
enter image description here。在某些站点中,他们建议使用 Microsoft.SharePoint.Client.dll。有人可以帮忙吗?
这不会像您预期的那样工作。 Microsoft.SharePoint.dll
是一个 服务器端 库,它是 Microsoft SharePoint 的一部分,因此既不能在客户端引用也不能以其他方式使用Outlook 加载项等环境。
您要找的是 Client-Side Object Model,简称 CSOM。然而,开发 CSOM 应用程序是一个完全不同的故事,需要略有不同的知识和技能。坏消息是大部分与 SharePoint 相关的工作将必须几乎从头开始重新开发。
如果您的 SharePoint 集成不繁重,您可以使用 SharePoint 的 Web 服务(REST 或 SOAP)实现您想要的。 article on MSDN 提供了对各种类型的 SharePoint API 的洞察力,并提供了 API 在什么情况下使用的指导。您应该先阅读此内容。
我们不能使用 using Microsoft.SharePoint;在sharepoint 没有安装系统。
我们需要使用 using Microsoft.SharePoint.client;用于客户端系统并使用客户端对象模型代码。
我在 vs2013 中开发了一个 outlook 插件。开发机器安装了共享点。我的代码有:
using Microsoft.SharePoint;
但是当我在客户端机器上 运行 这段代码时,它显示错误。 enter image description here。在某些站点中,他们建议使用 Microsoft.SharePoint.Client.dll。有人可以帮忙吗?
这不会像您预期的那样工作。 Microsoft.SharePoint.dll
是一个 服务器端 库,它是 Microsoft SharePoint 的一部分,因此既不能在客户端引用也不能以其他方式使用Outlook 加载项等环境。
您要找的是 Client-Side Object Model,简称 CSOM。然而,开发 CSOM 应用程序是一个完全不同的故事,需要略有不同的知识和技能。坏消息是大部分与 SharePoint 相关的工作将必须几乎从头开始重新开发。
如果您的 SharePoint 集成不繁重,您可以使用 SharePoint 的 Web 服务(REST 或 SOAP)实现您想要的。 article on MSDN 提供了对各种类型的 SharePoint API 的洞察力,并提供了 API 在什么情况下使用的指导。您应该先阅读此内容。
我们不能使用 using Microsoft.SharePoint;在sharepoint 没有安装系统。 我们需要使用 using Microsoft.SharePoint.client;用于客户端系统并使用客户端对象模型代码。