Skip to content

Release 11.0.0: .NET 11 target and current dependencies - #57

Merged
electricessence merged 8 commits into
masterfrom
release/11.0.0
Dec 6, 2026
Merged

electricessence merged 8 commits into
masterfrom
release/11.0.0

Conversation

@electricessence

@electricessence electricessence commented Dec 6, 2026 •

Copy link
Copy Markdown
Collaborator

Release 11.0.0: adds a .NET 11 target and moves every dependency to its newest version. No library source file changes, and the public API is identical to 10.0.0.

What changes for consumers

  • New net11.0 build. All existing targets stay: netstandard2.0, netstandard2.1, net6.0, net8.0, net9.0, net10.0.
  • The netstandard builds now depend on the 11.0.0 System packages (System.Threading.Channels, System.Collections.Immutable, Microsoft.Bcl.AsyncInterfaces), up from 6.0.0. .NET Framework and other .NET Standard consumers move up with them. On .NET 6 and later these are part of the framework, so nothing changes there.
  • A net7.0 consumer of the packed package gets the net6.0 build: no package dependencies and no package warnings, only the SDK's own "net7.0 is out of support" notice.

Library project

  • Version 11.0.0, with updated release notes.
  • The explicit Microsoft.SourceLink.GitHub reference is removed. The .NET SDK has included Source Link since .NET 8, and version 10.0.300 pulled in a vulnerable Microsoft.Build.Tasks.Git (GHSA-23fw-v26w-5fgq). All seven PDBs in the symbol package still carry Source Link.
  • CA1724 (new with net11.0) is silenced. The public type name Extensions has shipped for years, and renaming it would break callers.
  • API lock: package validation checks every pack against the published 10.0.0 package in strict mode, so additions count too. Open.ChannelExtensions/CompatibilitySuppressions.xml lists the two known differences between targets inside the package: the netstandard2.0-only ReadAllAsync polyfill, and SyncLock being Lock on net9.0 and later. Without that file, a clean build fails on exactly those two.

Tests and tooling

  • global.json pins SDK 11.0.100 (rollForward latestFeature) and opts dotnet test into the Microsoft Testing Platform.
  • The test, comparison and benchmark projects target net11.0. xunit 2 becomes xunit.v3 4.0.4, and the test SDK, runner and coverlet are updated. BenchmarkDotNet moves to 0.15.8 (build only; no benchmarks were run).
  • FluentAssertions is removed for licensing reasons. Its 11 assertions become plain xunit Assert calls with the same meaning.
  • xUnit1051 is silenced for the whole test project. The tests call the overloads without a token on purpose: the library takes a different path when a token can be cancelled, so passing the test token would stop them covering the default path. The trade-off is that new tests won't get this hint either.
  • One assertion in CancellationPropagationConcurrent now accepts OperationCanceledException or its subclass TaskCanceledException. Under load, a worker can start after the token is cancelled, which surfaces TaskCanceledException. It failed 1 of 4 full runs on net11.0, and passed 80 of 80 runs on its own.
  • New .github/workflows/build.yml, on every pull request and every push to master:
    • builds the whole solution, every target, with warnings as errors (this also packs, which runs the API check);
    • fails on any vulnerable package.

Tests run locally, not in CI

The owner decided not to run the test suite in CI. Its timing-sensitive channel tests pass on a developer machine but fail on small hosted runners, and they already did that before this PR. An earlier version of this PR ran the tests on windows-latest (4 cores): 4 to 5 batch and timeout tests failed in each leg. The same test families fail on master when the cores are limited, on the same machine:

Cores master (net9.0, xunit 2) this PR (net11.0, xunit.v3)
24 111/111 111/111
4, 3 runs 2 runs with 1 failure 2 runs with 1 failure
2, 2 runs 4 failures in each run 2 to 3 failures in each run

The failing tests are batch-with-timeout, ForceBatch, AnotherComplexBatchJoinScenario and the MultipleBatchReadersDoNotHang stress test. Master never had a workflow that ran tests, so this never showed up before.

Release checklist

  • Run the full suite locally, in Release and Debug: dotnet test --project Open.ChannelExtensions.Tests -c Release, then -c Debug.
  • Check the Build workflow is green on master.
  • Pack and publish.

Evidence (local, SDK 11.0.100)

  • dotnet build Open.ChannelExtensions.sln -c Release -warnaserror: 0 warnings, 0 errors.
  • Tests, on a 24-core machine, at the final commit: 111/111 on net11.0, in both Release and Debug. The unchanged master baseline on net9.0 was also 111/111.
  • dotnet list package --outdated: no updates for any project. --vulnerable --include-transitive: none.
  • Strict package validation against 10.0.0: no API differences on any target.

After merge

Publishing is yours. The docs facelift follows in a separate PR.

🤖 Generated with Claude Code

electricessence and others added 8 commits December 5, 2026 17:28
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Version 11.0.0. No library source changes.
- netstandard dependencies (System.Threading.Channels, System.Collections.Immutable,
  Microsoft.Bcl.AsyncInterfaces) move from 6.0.0 to 11.0.0.
- Remove the explicit Microsoft.SourceLink.GitHub reference: the .NET SDK has included
  Source Link since .NET 8, and 10.0.300 pulled in a vulnerable Microsoft.Build.Tasks.Git
  (GHSA-23fw-v26w-5fgq). All PDBs still carry Source Link.
- Silence CA1724 (new on net11.0): the public type name Extensions has shipped for years;
  renaming it would break callers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Tests, comparison app and benchmarks target net11.0.
- xunit 2 -> xunit.v3 4.0.4; Microsoft.NET.Test.Sdk, runner and coverlet updated.
- FluentAssertions removed (licensing); its 11 assertions become xunit Assert equivalents.
- xUnit1051 silenced: the tests call the token-less overloads on purpose; the library
  takes a different path when a token can be cancelled.
- Comparison app keeps its own Main (XunitAutoGeneratedEntryPoint=false).
- BenchmarkDotNet 0.15.8 (build only; no benchmarks run).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oncurrent

Under load a reader can start after the token is cancelled, and the result is
TaskCanceledException (a subclass of OperationCanceledException). The exact-type check
failed 1 of 4 full runs on net11.0. Test-only change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, vulnerable packages

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Strict mode, so additions count too. CompatibilitySuppressions.xml lists the two
known differences between targets inside the package (netstandard2.0-only
ReadAllAsync polyfill; SyncLock is Lock on net9.0+). Release notes now say
.NET Standard consumers get the 11.0.0 System packages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The timing-sensitive channel tests fail on small hosted runners (4 cores),
and they fail on master too when the cores are limited. The owner runs the
full suite locally before each release instead. The workflow becomes
build.yml: it still builds every project and target with warnings as
errors (which packs and runs the API check), and still fails on any
vulnerable package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@electricessence
electricessence merged commit 3516991 into master Dec 6, 2026
2 checks passed
@electricessence
electricessence deleted the release/11.0.0 branch December 6, 2026 04:17
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.

1 participant