类型或名称空间名称"SharePoint"在名称空间"Microsoft"中不存在(您是否缺少程序集引用?) [英] The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

查看:146
本文介绍了类型或名称空间名称"SharePoint"在名称空间"Microsoft"中不存在(您是否缺少程序集引用?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案中已经存在Microsoft.SharePoint程序集,但出现以下编译错误

Microsoft.SharePoint assembly already exists in the solution but the following compilation error appears

名称空间"Microsoft"中不存在类型或名称空间名称"SharePoint"(您是否缺少程序集引用?)

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

--------更新

-------- Update

我正在使用的解决方案是SharePoint 2010,VS要求我将其升级到SP 2013,因此警告说例如Microsoft.SharePoint.dll取决于System.Data.Linq.dll版本高于已经存在的4.0 在解决方案中.因此,我应该升级解决方案中的每个参考程序集.

The solution that I'm working on was a SharePoint 2010 and VS asked me to upgrade it to SP 2013, so the warnings says that for example the Microsoft.SharePoint.dll is depending on System.Data.Linq.dll version 4.0 which is higher than the one already exists in the solution. So, I should upgrade each reference assembly in the solution.

有现成的工具可以完成此任务吗?

Is there a ready made tool that can accomplish this task?

有帮助吗?

推荐答案

请在项目解决方案的属性中检查平台目标是否设置为x64,并且目标框架是否设置为.NET Framework 4.5.

最好的问候

维多利亚 


这篇关于类型或名称空间名称"SharePoint"在名称空间"Microsoft"中不存在(您是否缺少程序集引用?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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