Skip to content

Move the repository to .NET 11, keeping net10.0 in the packages - #93

Merged
HarryCordewener merged 1 commit into
mainfrom
claude/project-thread-xc5d5e
Nov 10, 2026
Merged

HarryCordewener merged 1 commit into
mainfrom
claude/project-thread-xc5d5e

Conversation

@HarryCordewener

Copy link
Copy Markdown
Member

Requested by Grave · project thread

Follows #90. The repository builds, tests and publishes on .NET 11. The packages still ship net10.0, because SharpMUTerm and SharpClient target net10.0. Dropping it would be a breaking change, and Grave chose to keep it.

Changes

  • Packages: all seven now build for net10.0;net11.0. Before, only MarkupString did. The framework list lives in Directory.Build.props.
  • SDK: global.json pins 11.0.100. build/Unions.props is removed, along with its .NET 10 SDK fallback (Microsoft.Net.Compilers.Toolset, LangVersion preview, skipping *.Union.cs in the format check).
  • Default TFM: net11.0. The tests target both net10.0 and net11.0, so the net10.0 build (union polyfills, older dependencies) still gets tested. The AOT smoke app and the showcase target net11.0, and the ILCompiler 10.0.13 workaround for the RC2 SDK is removed.
  • Microsoft.Extensions:
    • The net11.0 build of the DI package references 11.0.0. NuGet leaves out the dependencies that .NET 11 ships in Microsoft.NETCore.App (Options, DependencyInjection.Abstractions, Logging.Abstractions), so the net11.0 nuspec group lists only Configuration and Options.ConfigurationExtensions.
    • The net10.0 build keeps 10.0.14, so a .NET 10 client isn't pulled onto the 11.0 packages.
    • The tests and the smoke app move to 11.0.0.
  • CI:
    • The separate .NET 11 job is merged into the build matrix, which uses SDK 11 plus the .NET 10 runtime.
    • The matrix runs the tests on both frameworks and checks that every nupkg has lib/net10.0 and lib/net11.0.
    • The AOT job uses SDK 11 and runs the net11.0 binary.
    • The release workflow tests both frameworks and packs and publishes with SDK 11.
  • Docs and CHANGELOG: updated to match.

Verified locally (SDK 11.0.100, runtime 10.0 installed)

  • dotnet build -c Release with the format check on: no warnings, no errors.
  • Tests: 1703/1703 on net11.0, 1703/1703 on net10.0.
  • dotnet pack with package validation: all 7 packages contain lib/net10.0 and lib/net11.0.
  • AOT publish of the smoke app on net11.0: no IL warnings, and the binary runs.
  • The showcase builds. The CI dotnet format whitespace loop is clean.

The Web browser tests (npm test) were not run locally. Nothing they use changed.

Dependabot may later suggest raising the net10.0 Microsoft.Extensions references to 11.x. That still builds, but it raises the floor for .NET 10 clients, so keep the net10.0 group on 10.0.x.


Generated by Claude Code

Every package now builds for net10.0 and net11.0 (only the core package
did before), so .NET 10 clients such as SharpMUTerm and SharpClient keep
restoring. The repository itself needs the .NET 11 SDK: global.json pins
11.0.100, and the .NET 10 SDK fallback (Microsoft.Net.Compilers.Toolset,
build/Unions.props) is removed.

Tests target net10.0 and net11.0 and CI runs both; the separate .NET 11
CI job folds into the build matrix, which also checks every package
carries both frameworks. The AOT smoke app and the showcase target
net11.0, and the ILCompiler 10.0.13 workaround for the RC2 SDK goes.
The DI package's net11.0 build takes Microsoft.Extensions 11.0.0; the
net10.0 build keeps 10.0.14. Tests and the smoke app move to 11.0.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7V5f38R4Wb3cn2oTez
@HarryCordewener HarryCordewener self-assigned this Nov 10, 2026
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@HarryCordewener
HarryCordewener marked this pull request as ready for review November 10, 2026 21:50
@HarryCordewener
HarryCordewener merged commit b4eb0e4 into main Nov 10, 2026
8 checks passed
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.

2 participants