Repository navigation
Release 11.0.0: .NET 11 target and current dependencies - #57
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
net11.0build. All existing targets stay: netstandard2.0, netstandard2.1, net6.0, net8.0, net9.0, net10.0.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.Library project
Microsoft.SourceLink.GitHubreference is removed. The .NET SDK has included Source Link since .NET 8, and version 10.0.300 pulled in a vulnerableMicrosoft.Build.Tasks.Git(GHSA-23fw-v26w-5fgq). All seven PDBs in the symbol package still carry Source Link.Extensionshas shipped for years, and renaming it would break callers.Open.ChannelExtensions/CompatibilitySuppressions.xmllists the two known differences between targets inside the package: the netstandard2.0-onlyReadAllAsyncpolyfill, andSyncLockbeingLockon net9.0 and later. Without that file, a clean build fails on exactly those two.Tests and tooling
global.jsonpins SDK 11.0.100 (rollForward latestFeature) and optsdotnet testinto the Microsoft Testing Platform.Assertcalls with the same meaning.CancellationPropagationConcurrentnow acceptsOperationCanceledExceptionor its subclassTaskCanceledException. Under load, a worker can start after the token is cancelled, which surfacesTaskCanceledException. It failed 1 of 4 full runs on net11.0, and passed 80 of 80 runs on its own..github/workflows/build.yml, on every pull request and every push to master: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:The failing tests are batch-with-timeout,
ForceBatch,AnotherComplexBatchJoinScenarioand theMultipleBatchReadersDoNotHangstress test. Master never had a workflow that ran tests, so this never showed up before.Release checklist
dotnet test --project Open.ChannelExtensions.Tests -c Release, then-c Debug.Evidence (local, SDK 11.0.100)
dotnet build Open.ChannelExtensions.sln -c Release -warnaserror: 0 warnings, 0 errors.dotnet list package --outdated: no updates for any project.--vulnerable --include-transitive: none.After merge
Publishing is yours. The docs facelift follows in a separate PR.
🤖 Generated with Claude Code