<p>I ran into this issue today on a new machine using Visual Studio 2010.&nbsp; The error is "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.<br /><br />You have all the assembly references, the using statements, etc&hellip; to make it work.&nbsp; Intellisense works until you attempt to build or debug in the browser.</p>
<p>Here is how to resolve.</p>
<ol>
<li>Open up Solution Explorer and go to the Applications Tab.</li>
<li>The target Application Framework will be set to &ldquo;.Net Framework 3.5 Client Profile&rdquo;, change this to just &ldquo;.Net Framework 3.5&rdquo;.</li>
<li>Click &ldquo;Yes&rdquo; to the pop-up.</li>
<li>Open the build section and change the framework to x64.</li></ol>
<p>You should be able to debug/build successfully now.</p>
<p>&nbsp;</p><div class="bjtags">Tags:  <a rel="tag" href="http://technorati.com/tag/SharePoint+2010">SharePoint+2010</a>, <a rel="tag" href="http://technorati.com/tag/Custom+Development">Custom+Development</a>, <a rel="tag" href="http://technorati.com/tag/ASP.Net">ASP.Net</a></div>