Repository navigation
V13.0.0/double digits - #76
Conversation
Bump Codebelt bootstrapper, BenchmarkDotNet extension and coverlet package versions, drop the net9 package group and pin the net11 release candidate Microsoft.Extensions packages for the new target framework.
Source, test and app projects now target net11.0 alongside net10.0, and net9.0 is dropped from the target framework lists so the solution tracks the current .NET previews.
With net9 removed from the target frameworks, the NET9_0_OR_GREATER guards are moved to NET10_0_OR_GREATER so the Lock type, async disposal and default service provider validation are used on every target that supports them.
AGENTS.md now points the conditional compilation example at NET10_0_OR_GREATER and names net10.0 and net11.0 as the APIs to guard, matching the target frameworks used by the source projects.
Each reusable build, pack, test, SonarCloud and CodeQL job now sets include-preview so CI can build and test against the net11 preview SDK that the projects now target.
The service update workflow now takes the latest stable vMAJOR.MINOR.PATCH tag as the baseline instead of the first CHANGELOG.md heading, and it reuses a pending TBD entry for the next version. Tags are fetched explicitly so the lookup works on a shallow checkout.
The release-note workflow now reads the Availability line from the shared docfx include files instead of a hardcoded fallback string, so the published TFM list stays in one place.
The shared availability includes and the docfx landing page now reflect .NET 11 as the current target framework, replacing the .NET 9 references.
Contributors are now pointed at a .NET 11 SDK and the current target frameworks, so the guide matches what the repository builds against.
The root README and the NuGet package READMEs list .NET 10 and .NET 11 as the supported modern targets, replacing the outdated .NET 9 mention.
The agent guide now describes the .NET 11 SDK, source TFMs, and test TFMs, so automated contributors build and test against the same targets as the project.
[High impact] The latest fixes appear safe to merge; the two remaining release-note findings are non-blocking.
|
The packable projects now target .NET 11, so each package's release notes record the new target framework set and the removal of .NET 9 under version 13.0.0.
The changelog summarizes the 13.0.0 major release for humans reading release status: .NET 11 is added, .NET 9 is removed, and the package, test, CI, and documentation baselines move to .NET 11 and .NET 10.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #76 +/- ##
==========================================
+ Coverage 92.13% 94.11% +1.98%
==========================================
Files 85 87 +2
Lines 1576 1615 +39
Branches 173 181 +8
==========================================
+ Hits 1452 1520 +68
+ Misses 112 84 -28
+ Partials 12 11 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Turn on EnforceCodeStyleInBuild for source projects and reference SonarAnalyzer.CSharp centrally so style issues surface during build.
Align package pins with the current .NET 11 baseline and Cuemon 10.8.2.
Normalize text files to LF so line endings stay consistent across Windows and Linux checkouts.
Run CI on Ubuntu 26.04 and split the Docker test environment into net10.0 and net11.0.
Keep the project-wide NoWarn list instead of replacing it.
Set the 13.0.0 release date to 2026-11-10, the planned go-live date.
IDE0330 is no longer disabled, so the agent guidance now tells contributors to use System.Threading.Lock behind a NET10_0_OR_GREATER guard with a plain object fallback for multi-targeted source projects.
The shared build props now emit warnings consistently, disable NuGet audit for the offline build, and run test projects on the Microsoft Testing Platform runner.
The Sonar analyzer flags a few intentional patterns, such as unused type parameters that bind a fixture to its entry point. Each suppression carries a justification so the intent stays visible.
Cancelling a deferred host now propagates the original cancellation token instead of a bare cancel, and stopping the entry point after the host is captured no longer surfaces as an error. A null host factory check that could never fail was removed.
Concurrent access to a deferred host could start it more than once. A dedicated lock now guards startup, using System.Threading.Lock on net10.0 and later and a plain object on older targets.
New tests cover cancellation of a deferred host, the abort path when stopping an entry point, and concurrent lock-protected startup. The hosting test project now references the minimal console bootstrapper so these scenarios run end to end.
Files were saved with a byte order mark and CRLF line endings, which conflicts with the LF rule in gitattributes. Stripping the BOM and converting to LF brings every file in line with the repository convention and removes noisy diffs.
Converts files to LF line endings and strips the UTF-8 byte order mark so they match the eol=lf rule in .gitattributes. No content changes.
Removes trailing whitespace and aligns JSON indentation to the two-space style used elsewhere in the repository. No behavioral changes.
Extends the existing analyzer severity overrides to VB files, points the S3267 reference at the current Sonar rule page, and removes the IDE0306, CA1016, and S8970 overrides.
Rewrites the 13.0.0 changelog entry around the .NET 11 baseline and corrects the WSL distribution named in the contributor guide to Ubuntu-26.04.
Blocking enforcement for IDE0161 keeps new and existing C# files on file-scoped namespaces, and the Sonar rule link now points at the current rule page instead of a retired URL.
Picks up Codebelt.Coverlet.MTP 10.1.2 and Microsoft.Testing.Extensions.HangDump 2.5.2 along with the refreshed pinned versions of the scorecard, artifact upload, and SARIF upload actions used by the scorecard workflow.
The workflow now accepts any planned version newer than the latest tag, verifies release dates instead of only matching a date pattern, and closes the Python heredoc that previously swallowed the following step.
Error responses were served with year-long immutable caching, so a client could cache a failure instead of retrying; only successful and revalidated responses are cached now, and range requests are disabled because range errors bypass the status map.
The workspace README documents that .bot holds local-only agent material, so the ignore rule keeps that working directory private while allowing the README itself to be tracked.
Benchmark authoring guidance lives in AGENTS.md now, so the Copilot prompt was a duplicate of the same rules that could drift out of sync with the maintained version.
Consumers upgrading from the .NET 9 targets get an explicit statement of the break in the current version block of every package that dropped net9.0.
Contributors need the per-framework Docker runner names, because the previous combined 8-9-10-11 image no longer matches what testenvironments.json declares.
Restructures the 13.0.0 entry into Added, Changed, Removed, and Fixed sections so the .NET 9 removal, dependency bumps, host cancellation fixes, and documentation asset caching are each stated once without overlap.
| if pending_version > released_version: | ||
| # Preserve an explicitly planned patch, minor, or major release. | ||
| new_version = current_version |
There was a problem hiding this comment.
Reusing a newer planned version, such as 13.0.0, now lets the workflow continue when that version already has package notes. The later step always prepends Version: ${NEW}, so all four packages get two sections for the same release. Update the existing section when reusing a planned version instead of adding another one.
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/service-update.yml
Line: 96-98
Comment:
**Planned release notes repeat**
Reusing a newer planned version, such as `13.0.0`, now lets the workflow continue when that version already has package notes. The later step always prepends `Version: ${NEW}`, so all four packages get two sections for the same release. Update the existing section when reusing a planned version instead of adding another one.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| - CHANGED Target frameworks by adding .NET 11 (net11.0) and removing .NET 9 (net9.0), so the package now targets .NET 11, .NET 10 and .NET Standard 2.0 | ||
|
|
||
| # Breaking Changes | ||
| - .NET 9 consumers must target .NET 10 or later. |
There was a problem hiding this comment.
Upgrade warning overstates requirements
This warning, also added to Codebelt.Extensions.Xunit, tells .NET 9 users they must upgrade. Both packages still provide netstandard2.0 assets that .NET 9 callers can use. Limit the .NET 10 requirement to the App and ASP.NET Core packages. For these two packages, describe the removal of dedicated .NET 9 assets instead.
Prompt To Fix With AI
This is a comment left during a code review.
Path: .nuget/Codebelt.Extensions.Xunit.Hosting/PackageReleaseNotes.txt
Line: 8
Comment:
**Upgrade warning overstates requirements**
This warning, also added to `Codebelt.Extensions.Xunit`, tells .NET 9 users they must upgrade. Both packages still provide `netstandard2.0` assets that .NET 9 callers can use. Limit the .NET 10 requirement to the App and ASP.NET Core packages. For these two packages, describe the removal of dedicated .NET 9 assets instead.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Move xunit.v3 packages to 4.0.3 and align Cuemon, Codebelt coverage, test SDK, and Microsoft.Extensions baselines with the current release train so the test projects build against the latest supported versions.
Provide PriorityAttribute and PriorityTestMethodOrderer so test classes can order xUnit v3 methods by numeric priority without the third-party Xunit.v3.Priority package. The hosting tests move to the new orderer and the unused package reference is removed.
Add DocFX overwrite pages for the public types in the Codebelt.Extensions.Xunit namespace and point the namespace overview at the priority ordering workflow and the WriteLines<T> extension member.
The package readmes implied every package works on .NET Framework 4.6.2 and .NET Standard 2.0. Only Codebelt.Extensions.Xunit and Codebelt.Extensions.Xunit.Hosting ship a .NET Standard 2.0 asset, so the readmes now state the actual targets, and the root README has a Target Frameworks section that documents the support matrix.
Unmarked test methods were ordered with int.MaxValue as a sentinel, so an explicit [Priority(int.MaxValue)] could tie with them and fall back to name ordering. Unmarked methods now sort after all prioritized methods via a nullable priority, and the test covers this ordering.
|



This pull request moves the solution from the .NET 9 baseline to .NET 11 and .NET 10, aligning target frameworks, conditional compilation guards, package versions, CI, and documentation with the new toolchain. It also updates the service update workflow to derive versions from Git tags and release availability from the shared DocFX includes.
Target frameworks:
net11.0andnet10.0, keepingnetstandard2.0for source andnet48for Windows testsnet9.0target is removed from all projectsDependencies:
net11.0are pinned to the .NET 11 release candidate, and the .NET 9 package group is removedConditional compilation:
NET9_0_OR_GREATERguards are moved toNET10_0_OR_GREATER, so theLocktype, asynchronous disposal, and default service provider validation apply on every target that supports themCI and release workflows:
Documentation: