When trying to add SharePoint.dll reference to a Windows Forms application in Visual Studio 2010 make sure you set the target framework to a non client profile.
If you don’t you’ll get the error message:
The type or namespace name ‘SharePoint’ does not exist in the namespace ‘Microsoft’ (are you missing an assembly reference?)
Also set the platform target to x64 at the Project Properties, Build section.
How to add Sharepoint dll reference to Windows Forms application project in Visual Studio 2010?
16
May