How to resolve "The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) "for console application in Visual Studio 2010.In this article we are going to see how to resolve "The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) "For console application in Visual Studio 2010. Even though if you add the Reference Microsoft.SharePoint.dll in your console application and if you try to build your application, you will be getting the above error.I have created one Console application using Visual Studio 2010 and I have added the reference Microsoft.SharePoint.dll. And I have added the namespace Microsoft.SharePoint.using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.SharePoint;
namespace CreateListItem{ class Program { static void Main(string[] args) { } }}When you hit the F5 you will be getting the follownig error.
How to resolve this error:
Summary:Whenever you want to create Console Application in Visual Studio 2010 for SharePoint 2010 remember that the target framework should be changed as I have said in this article to build your code successfully.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: