Sunday, 4 September 2016

Using SharePoint Server Object Model in Windows Application

 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.

 

solution Properties

 

2. Select Application Tab > Target frameworks.

 

Target frameworks

 

3. Change Target Framework from .Net Framework 4 client profile to .Net framework 3.5.

 

Change Target Framework

 

4. Go back to Build Tab > Platform Target.

 

Platform Target.

 

5. Change Platform Target from 86x to 64x.

 

Change Platform .

 

6. Now add Microsoft.SharePoint.dll reference will work.

 

Thank you very much

          Fahadullah Karimi

         SharePoint Specialist

Server Side Object Model(SSOM) in SharePoint 2013Client Side Object Model (CSOM) in SharePoint 2013

No comments:

Post a Comment