microsoftgraph / microsoftgraph/msgraph-beta-sdk-dotnet
Beta endpoints marked as obsolete in .NET SDK
@MIchaelMainer is already working on this.
Since Apr 13, 2026.
- Dominant language
- C#
- Stars
- 112
- Forks
- 37
- Avg merge
- 14h 57m
- Merged PRs (30d)
- 3
Description
Describe the bug
Hi,
for some reason, the Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder has the following properties
- Mailboxes
- MessageTraces
- Traces
generated with the obsolete attribute and with the message
Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15.
Same for the Microsoft.Graph.Beta.Me.Settings.Exchange.GetAsync().
Would it be possible to remove the obsolete message from metadata, so .NET SDK code is generated without the obsolete attribute?
Expected behavior
The mentioned properties and method are generated without the obsolete attribute
How to reproduce
Create a console app, install the latest version of beta nuget and add the following code:
var client = new GraphServiceClient(credential);
var result = await client.Me.Settings.Exchange.GetAsync();
var mailboxId = result.PrimaryMailboxId;
var rootFolder = await client.Admin.Exchange.Mailboxes[mailboxId].Folders[folderId].GetAsync();
SDK Version
5.131.0-preview
Latest version known to work for scenario above?
No response
Known Workarounds
No workarounds
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.