feat!: update target frameworks to net8.0 and net10.0, drop net5.0#3096
Open
gavinbarron wants to merge 2 commits intomainfrom
Open
feat!: update target frameworks to net8.0 and net10.0, drop net5.0#3096gavinbarron wants to merge 2 commits intomainfrom
gavinbarron wants to merge 2 commits intomainfrom
Conversation
BREAKING CHANGE: Dropped net5.0 target framework. The SDK now targets netstandard2.0, netstandard2.1, net8.0, and net10.0. Consumers targeting net5.0 must upgrade to net8.0 or later. - Update Microsoft.Graph TFMs from netstandard2.0;netstandard2.1;net5.0 to netstandard2.0;netstandard2.1;net8.0;net10.0 - Update test project from net8.0 to net8.0;net10.0 - Replace net5.0 per-TFM property groups with net8.0 and net10.0 Fixes #3095 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the SDK and test projects to multi-target newer .NET frameworks, dropping net5.0 and adding net8.0 and net10.0, aligning the generated Graph client library with currently supported runtimes.
Changes:
- Update
Microsoft.Graphtarget frameworks fromnetstandard2.0;netstandard2.1;net5.0tonetstandard2.0;netstandard2.1;net8.0;net10.0. - Update
Microsoft.Graph.DotnetCore.Testto multi-targetnet8.0;net10.0. - Add per-configuration/per-TFM documentation file property groups for the new TFMs.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj | Multi-target test project to run on net8.0 and net10.0. |
| src/Microsoft.Graph/Microsoft.Graph.csproj | Drop net5.0, add net8.0/net10.0, and extend conditional build properties for new TFMs. |
Remove redundant per-TFM DocumentationFile/NoWarn property groups that could cause parallel build file write races. GenerateDocumentationFile is already enabled globally, and NoWarn values are now consolidated into the main PropertyGroup. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
MIchaelMainer
approved these changes
Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Update SDK and test project target frameworks.
Microsoft.Graph
netstandard2.0;netstandard2.1;net5.0netstandard2.0;netstandard2.1;net8.0;net10.0Microsoft.Graph.DotnetCore.Test
net8.0net8.0;net10.0Breaking Change
Dropping
net5.0is a breaking change for consumers still targeting that framework. They must upgrade tonet8.0or later.Validation
Fixes #3095
Microsoft Reviewers: Open in CodeFlow