Use Microsoft Graph SDK to access OneDrive

  1. Install the SDK by installing the following two NuGet packages:
    1. Microsoft.Graph
    2. Microsoft.Graph.Auth -IncludePrerelease
  2. Create a Microsoft Graph client.