You can continue working on the same console app project in Visual Studio you started previously. Simply add a new class file and mark that as the startup method in your app:
- Right-click on your project in Solution Explorer and click on Add | New Item...:
![](https://static.packt-cdn.com/products/9781787121430/graphics/assets/48797918-befd-4ce9-8ba1-6503c6e6479c.png)
- The class is selected by default, so enter a name, such as spREST.cs and click on Add to add a new class file in the project.
Â
- Next, right-click again on your project in Solution Explorer and select Properties:
![](https://static.packt-cdn.com/products/9781787121430/graphics/assets/77d04265-5f50-4938-9854-d9ef8d4e7abc.png)
- In the Properties window, click on the Startup object to reveal a drop-down menu, and then select the new class you added as the startup object:
![](https://static.packt-cdn.com/products/9781787121430/graphics/assets/35baa50c-df57-4958-94da-6d820098ef52.png)
- You can now run your code in the new app without having to remove the SOAP-based app from the same project.
To start building your new console app that uses REST APIs to access SharePoint Online, perform the following:
- First, as we need to access REST APIs, it's beneficial to use a helper tool to perform...