Before we construct our calls directly to the REST APIs SharePoint exposes, let's do a quick exercise using the traditional CSOM approach. This is part of the SDK, and depending on your usage, it will access SharePoint through the SOAP-based Web Services, such as sites.asmx that resides in /_vti_bin/sites.asmx.
Let's try creating a simple console application first to see how things were working until now:
- Open Visual Studio 2015/2017 and create a new project from File | New | Project...:
![](https://static.packt-cdn.com/products/9781787121430/graphics/assets/e7323152-bdff-4fbe-a210-07d9cdace6c5.png)
- Select a Console App from the list of available templates, as follows:
![](https://static.packt-cdn.com/products/9781787121430/graphics/assets/b0476b50-308b-49b9-be5c-05411dc92ea4.png)
- Name the app as you like, and click OK.
- If you choose C# as the programming language, a Program.cs open with a skeleton class. You'll need to get the SharePoint Online Client Components SDK first; to do it, click on Tools |NuGet Package Manager | Package Manager Console:
![](https://static.packt-cdn.com/products/9781787121430/graphics/assets/15458b6c-4a17-4b90-8e37-352dd5d1a7b8.png)
- The Package Manager Console opens in a separate window; by default, it opens in...