When using SharePoint DLLs (which are x86 only) from a non-ASP.NET app, you can set the \"Platform target\" to x86 (instead of \"Any CPU\") so both Visual Studio 2010 and th
You can set custom compiler option on web.config on the <compilers>
<compilers>
compilerOptions="/platform:string"
where string can be found here: http://msdn.microsoft.com/en-us/library/zekwfyz4(VS.80).aspx