Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Namespace 'SharePoint' does not exist in the namespace 'Microsoft'

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?

like image 634
This 0ne Pr0grammer Avatar asked Aug 03 '11 20:08

This 0ne Pr0grammer


1 Answers

Make sure that the target framework is 3.5 and not 4 i.e for SP2010

like image 156
Mahika Avatar answered Sep 28 '22 01:09

Mahika