I am building a Sharepoint utility using Sharepoint Client Object Model API in C#. I included the reference to the following libraries in my application:
using Microsoft.SharePoint.Client;
I can use the ClientContext class in my application without any problem like:
ClientContext ctxt = new ClientContext(siteURL);
ctxt.Credentials = websService.Credentials;
Web site = ctxt.Web;
But when I try to build my application, I get this following error:
The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
I searched more and found that the version of .NET Framework should be 3.5, but it is already set to 3.5.
Can anyone please guide where I'm going wrong and what exactly is causing this issue.
Just an FYI - I'm using Visual Studio 2013 to develop the application.
The path of the library is : C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll
Runtime Version : v4.0.30319 Version : 15.0.0.0