我有一台安装了 Shrepoint 的服务器。
我想测试这段代码:
SPUtility.GetLocalizedString Method
当我添加对 Microsoft.SharePoint.dll 的引用时,我可以解析 SPSite
和...。问题是当我想构建项目时,它无法识别 using Microsoft.SharePoint
更多:
我得到这个错误:
Error 13 The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
问题出在哪里?我添加了对 Microsoft.SharePoint.dll
的引用,但在构建时它不起作用
最佳答案
SharePoint 2010 中的 Microsoft.SharePoint.dll 使用 Framework 3.5 但 来自 SharePoint 2013 的 Microsoft.SharePoint.dll 使用 Framework 4.0
尝试一下。
关于c# - 对 Microsoft.SharePoint.dll 的引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20716319/