参考Microsoft.SharePoint.dll [英] Reference to Microsoft.SharePoint.dll

查看:299
本文介绍了参考Microsoft.SharePoint.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Shrepoint安装的服务器。

I have a server that Shrepoint installed on it.

我想测试这个代码:

SPUtility.GetLocalizedString方法

当我添加对Microsoft.SharePoint.dll的引用时,我可以解决 SPSite 和.. 。问题是当我想要构建项目,它不能识别使用Microsoft.SharePoint 任何更多:

When I add reference to Microsoft.SharePoint.dll I can resolve SPSite and ... .The problem is When I want to build the project it does not recognize using Microsoft.SharePoint any more:

我得到这个错误:


错误13类型或命名空间名称'SharePoint'不存在于命名空间'Microsoft' ?)

Error 13 The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

问题在哪里?我添加对 Microsoft.SharePoint.dll 的引用,但在构建时它不起作用

where is the problem? I add reference to Microsoft.SharePoint.dll but in build time it does not works

推荐答案

来自SharePoint 2010的Microsoft.SharePoint.dll使用Framework 3.5
,但
来自SharePoint 2013的Microsoft.SharePoint.dll使用Framework 4.0

Microsoft.SharePoint.dll from SharePoint 2010 use Framework 3.5 but Microsoft.SharePoint.dll from SharePoint 2013 use Framework 4.0

尝试一下。

这篇关于参考Microsoft.SharePoint.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆