OneDrive / onedrive-sdk-csharp

OneDrive SDK for C#! https://dev.onedrive.com
Other
295 stars 145 forks source link

Request() method throws exception #252

Open marcnet80 opened 4 years ago

marcnet80 commented 4 years ago

The code samples didn't work, after packages updates (Newtonsoft.Json to 12.0.0.0 and Microsoft.Graph.Core to 1.18.0.0):

var item = await oneDriveClient
                     .Items[itemId]
                     .Request()
                     .GetAsync();

var item = await oneDriveClient
                     .Drive
                     .Root
                     .ItemWithPath("path/to/file/txt")
                     .Request()
                     .GetAsync();

Microsoft.OneDriveSDK Version : 2.0.7 Exception message:

Method not found: 'Void Microsoft.Graph.BaseRequest.set_SdkVersionHeaderPrefix(System.String)'.