Most of the time it is very handy to test out something using console application against SharePoint 2010. But this could be painful for at times as developers finds it that references does not pick the assembly correctly/build fails.
Here are two things that you need to be careful of when developing something on console application.
- The target platform of your console application needs to be set as x64(64 bit) in the Build configuration of your project.
- The target framework needs to be .NET 3.5
Republished for the benefit of all from http://pointshared.blogspot.com/2010/12/visual-studio-2010-console-application.html