File Upload to SharePoint Document Library (O365 Site) using C# Console - Rest API
Create a Console Application In Visual Studio and follow the below codes. You will not find the "Newtonsoft.Json" references in the default reference files. You need to follow the below instruction to include Newstonsoft.json in the Console Application Instructions for Adding Newstonsoft.Json Via the "Solution Explorer" Simply right-click the "References" folder and select "Manage NuGet Packages..." Once that window comes up click on the option labeled "Online" in the left most part of the dialog. Then in the search bar in the upper right type "json.net" Click "Install" and you're done. Via the "Package Manager Console" Open the console. "View" > "Other Windows" > "Package Manager Console" Then type the following: Install-Package Newtonsoft.Json For more info on how to use the "Package Manager Console" check out the nuget docs. ...

