Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat!: update target frameworks to net8.0 and net10.0, drop net5.0 - #3096

#3096
Merged
MIchaelMainer merged 3 commits into
mainmicrosoftgraph/msgraph-sdk-dotnet:mainfrom
update-tfms-net8-net10microsoftgraph/msgraph-sdk-dotnet:update-tfms-net8-net10Copy head branch name to clipboard
May 1, 2026
Merged

feat!: update target frameworks to net8.0 and net10.0, drop net5.0#3096
MIchaelMainer merged 3 commits into
mainmicrosoftgraph/msgraph-sdk-dotnet:mainfrom
update-tfms-net8-net10microsoftgraph/msgraph-sdk-dotnet:update-tfms-net8-net10Copy head branch name to clipboard

Conversation

@gavinbarron

@gavinbarron gavinbarron commented Apr 29, 2026

Copy link
Copy Markdown
Member

Summary

Update SDK and test project target frameworks.

Microsoft.Graph

  • Before: netstandard2.0;netstandard2.1;net5.0
  • After: netstandard2.0;netstandard2.1;net8.0;net10.0

Microsoft.Graph.DotnetCore.Test

  • Before: net8.0
  • After: net8.0;net10.0

Breaking Change

Dropping net5.0 is a breaking change for consumers still targeting that framework. They must upgrade to net8.0 or later.

Validation

  • Build succeeds for all 4 TFMs
  • All 90 tests pass on both net8.0 and net10.0 (73 functional tests skipped as expected)

Fixes #3095

Microsoft Reviewers: Open in CodeFlow

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>
Copilot AI review requested due to automatic review settings April 29, 2026 00:19
@gavinbarron
gavinbarron requested a review from a team as a code owner April 29, 2026 00:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.Graph target frameworks from netstandard2.0;netstandard2.1;net5.0 to netstandard2.0;netstandard2.1;net8.0;net10.0.
  • Update Microsoft.Graph.DotnetCore.Test to multi-target net8.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.

Comment thread src/Microsoft.Graph/Microsoft.Graph.csproj Outdated
Comment thread src/Microsoft.Graph/Microsoft.Graph.csproj Outdated
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
MIchaelMainer enabled auto-merge (squash) May 1, 2026 22:21
@MIchaelMainer
MIchaelMainer merged commit a383774 into main May 1, 2026
6 checks passed
@MIchaelMainer
MIchaelMainer deleted the update-tfms-net8-net10 branch May 1, 2026 22:46
This was referenced May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update target frameworks to netstandard2.0;netstandard2.1;net8.0;net10.0

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.