Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SharePointOnlineCredentials Missing or not found

I have added Sharepoint reference in my project. Even after adding reference, it is showing:

SharePointOnlineCredentials Missing or not found.

Can anyone suggest a solution?

like image 673
D.Daniel Avatar asked Jun 02 '17 07:06

D.Daniel


2 Answers

Add this package "Microsoft.Sharepoint.Client.Online.CSOM"

like image 180
BSAMEI Avatar answered Nov 14 '22 11:11

BSAMEI


  1. Right click on the project Click on Add Reference
  2. In the Assemblies, select Extensions Make sure that you have check both, Microsoft.SharePoint.Client and Microsoft.SharePoint.Client.Runtime
  3. Add using Microsoft.SharePoint.Client; in your references
like image 23
Vignesh Subramanian Avatar answered Nov 14 '22 12:11

Vignesh Subramanian