Skip to content

build(frameworks)!: align .NET target frameworks with support lifecycles - #1144

Draft
Gavin Barron (gavinbarron) wants to merge 1 commit into
mainfrom
gavinbarron-update-core-to-net11
Draft

Gavin Barron (gavinbarron) wants to merge 1 commit into
mainfrom
gavinbarron-update-core-to-net11

Conversation

@gavinbarron

@gavinbarron Gavin Barron (gavinbarron) commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Fixes #1143

Changes proposed in this pull request

  • BREAKING CHANGE: .NET target framework alignment with .NET support lifecycles. Replace dedicated net8.0 library/test targets with net11.0. Preserve netstandard2.0, netstandard2.1, net462, net10.0, and optional .NET 10 MAUI library targets. Retained .NET Standard assets may still offer compatible fallbacks for .NET 8 consumers; removing the dedicated target is not an unconditional runtime incompatibility.
  • Select .NET SDK 11.0.100; update PR, daily, release, and SonarCloud configuration to use .NET 10/11 instead of 8/10. Move coverage and trimming/Native AOT validation to .NET 11 and document build requirements. No dependency package/version changes are required; consuming Core's dedicated net11.0 asset requires publishing this updated package.
  • Validation with an isolated .NET SDK 11.0.100: dotnet build Microsoft.Graph.Core.sln --no-restore --verbosity minimal passed for all five non-MAUI library targets; dotnet test Microsoft.Graph.Core.sln --framework net11.0 --verbosity minimal, dotnet test Microsoft.Graph.Core.sln --no-build --framework net10.0 --verbosity minimal, and dotnet test Microsoft.Graph.Core.sln --no-build --framework net462 --verbosity minimal each passed (195 passed, one existing skip). dotnet publish tests\Microsoft.Graph.DotnetCore.Core.Trimming\Microsoft.Graph.DotnetCore.Core.Trimming.csproj -c Release -r win-x64 -f net11.0 /p:TreatWarningsAsErrors=true /warnaserror --verbosity minimal passed with native code generation. dotnet pack src\Microsoft.Graph.Core\Microsoft.Graph.Core.csproj --no-restore -c Release --output C:\Users\gavinbarron\.copilot\session-state\f75f860a-442d-4448-8882-13332fa51a44\files\packages --verbosity minimal passed; package inspection confirmed all retained non-MAUI targets plus net11.0 and no net8.0 asset. dotnet test Microsoft.Graph.Core.sln --no-build --framework net11.0 /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --verbosity minimal passed and emitted the configured coverage.net11.0.opencover.xml. git diff --check passed. MAUI builds and hosted CI were not run; existing certificate-test SYSLIB0057 warnings remain.

Other links

Microsoft Reviewers: Open in CodeFlow

Replace the dedicated net8.0 target with net11.0 while preserving other library targets. Update SDK selection, CI, coverage, trimming validation, and documentation.

BREAKING CHANGE: .NET target framework alignment with .NET support lifecycles. The dedicated net8.0 library and test targets are removed and net11.0 is added. Building requires the .NET 11 SDK. Retained .NET Standard assets may still provide compatible fallbacks for .NET 8 consumers.

Refs #1143

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@gavinbarron
Gavin Barron (gavinbarron) force-pushed the gavinbarron-update-core-to-net11 branch from 815a73a to 9b5639e Compare November 12, 2026 21:36
@gavinbarron Gavin Barron (gavinbarron) changed the title feat!: align .NET target frameworks with support lifecycles build(frameworks)!: align .NET target frameworks with support lifecycles Nov 12, 2026
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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.

Align .NET target frameworks with .NET support lifecycles

1 participant