csom-setup


Title: Setup the CSOM environment for start the code.

Description:
CSOM requires below references. To install the references, follow below procedure.

Microsoft.SharePoint.Client.dll
Microsoft.SharePoint.Client.Runtime.dll
 
 Step1: Open Visual Studio and Select New-->Project option
 
 
 

 
 Step2: Select Visual C#--> Console App. Provide Name, Location and Solution name and Click on OK.
 

Step3: Right click on Projectname and chose Manage NuGetPackages"



 
 

Step4:
Add the Microsoft.SharePointOnline.CSOM (refer below the screen)


 
 

Note: Once Installed above procedure,  below require references will be added automatically. 




Before Install:

 
 



It is ready to start Programming. You can write the code below and build.