After adding the reference Microsoft.SharePoint.dll to a Windows Application automatically from the reference list.
To use SharePoint Object Model in Windows
Application by following steps below:
1. Go to solution > Right click > Properties.
2. Select Application Tab > Target frameworks.
3. Change Target Framework from .Net Framework 4
client profile to .Net framework 3.5.
4. Go back to Build Tab > Platform Target.
5. Change Platform Target from 86x to 64x.
6. Now add Microsoft.SharePoint.dll reference will
work.
Thank you very
much
Fahadullah Karimi
SharePoint Specialist
Server Side Object Model(SSOM) in SharePoint 2013 | Client Side Object Model (CSOM) in SharePoint 2013 |
No comments:
Post a Comment