命名空间“Microsoft"中不存在命名空间“SharePoint" [英] Namespace 'SharePoint' does not exist in the namespace 'Microsoft'
问题描述
所以我开始学习 C#,就像刚开始学习一样,而且来自 Java 背景,看起来还不错.不过,我有一个问题.我正在关注 THIS 使用教程客户对象模型.并且只是从顶部开始,我添加了引用,但是 using Microsoft.SharePoint.Client;
不断给我错误命名空间 'SharePoint' 在命名空间 'Microsoft' 中不存在,但是我在右侧面板上清楚地看到它.所以查看说明,我能想到的唯一区别是我使用的是 Visual Studio Express,因此在创建新的框架时无法选择要使用的框架项目.除此之外,我不知道可能是什么问题.有没有人对我可能遗漏的其他内容或如何纠正此问题有任何想法?
So I am starting to learn C#, like literally just started learning, and coming from a Java background, it doesn't look too bad. However, I have a question. I am following THIS tutorial on using the client-object model. And just starting from the top, I added the references, but using Microsoft.SharePoint.Client;
keeps giving me the error that "the namespace 'SharePoint' does not exist in the namespace 'Microsoft', but I clearly see it on the right side panel. So looking at the instructions, the only difference I can think of is that fact that I am using Visual Studio Express and thus do not have the option to choose which framework to use when creating a new project. Other than that, I don't know what the problem might be. Does anyone have any ideas on what else I could be missing or how to correct this problem?
推荐答案
您是否添加了对 Microsoft.SharePoint.Client
程序集和 Microsoft.SharePoint.Client.Runtime的引用code> 程序集作为 注意到附近该教程的开头?
Did you add the references to the Microsoft.SharePoint.Client
assembly and Microsoft.SharePoint.Client.Runtime
assembly as noted near the beginning of that tutorial?
这篇关于命名空间“Microsoft"中不存在命名空间“SharePoint"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!