microsoftgraph / microsoftgraph/msgraph-sdk-dotnet

Cannot get /me/drive/root

Open
#1,876 10 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs: Attention :wave: Question: SDK
Dominant language
C#
Stars
789
Forks
264
Avg merge
15h 17m
Merged PRs (30d)
3

Description

Describe the bug

Cannot get /me/drive/root using the documented code snippet.

To Reproduce
Steps to reproduce the behavior:

  1. Add Microsoft.Graph version 5.8.0 to project file
  2. Add code snippet from README.md file to get /me/drive/root information; var rootItem = await graphClient.Me.Drive.Root.GetAsync();
  3. IDE says: CS1061: 'DriveRequestBuilder' does not contain a definition for 'Root' and no accessible extension method 'Root' accepting a first argument of type 'DriveRequestBuilder' could be found (are you missing a using directive or an assembly reference?)

Expected behavior
Graph library returns root item

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Windows
  • Browser N/A
  • Version 11

Additional context
I'm trying to upgrade from Graph library 3.x.x to latest version (5.8.0).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the README.md snippet and the Microsoft.Graph 5.8.0 API around graphClient.Me.Drive, then reproduce the CS1061 error from the issue. Compare the documented path with the available DriveRequestBuilder members; done means the documented example compiles and retrieves the /me/drive/root item.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.