Skip to content

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

Open
gavinbarron wants to merge 2 commits intomainfrom
update-tfms-net8-net10
Open

feat!: update target frameworks to net8.0 and net10.0, drop net5.0#3096
gavinbarron wants to merge 2 commits intomainfrom
update-tfms-net8-net10

Conversation

@gavinbarron
Copy link
Copy Markdown
Member

@gavinbarron gavinbarron commented Apr 29, 2026

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
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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>
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