Repository navigation
Select the .NET 10 SDK Line in global.json and Unset LangVersion - #688
Conversation
Adopts the hub's dotnet-codestyle rule from ProjectTemplate 2.0.1421. - global.json gains the hub's sdk block, 10.0.100 with rollForward latestFeature and allowPrerelease false, and keeps the MTP test runner. - Directory.Build.props drops LangVersion latest, so the C# version follows the net10.0 TFM rather than the installed compiler. - OPERATIONS.md describes the SDK selection in place of the old "deliberately carries no sdk section" note. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 42 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #688 +/- ##
========================================
Coverage 57.01% 57.01%
========================================
Files 15 15
Lines 1368 1368
Branches 108 108
========================================
Hits 780 780
Misses 571 571
Partials 17 17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain, and the changes consistently update SDK selection, language-version behavior, and supporting documentation for the .NET 10 target.
No open issues 🎉
What changed in this PR
This PR aligns the repository's .NET toolchain with the .NET 10 SDK line and ensures the C# language version follows the net10.0 target framework.
Changes:
- Selects the stable .NET 10 SDK line with feature-band roll-forward while preserving the Microsoft.Testing.Platform runner configuration.
- Removes the explicit
LangVersionoverride from shared MSBuild configuration. - Updates operational documentation to describe SDK selection and roll-forward behavior.
| File | Description |
|---|---|
| OPERATIONS.md | Documents the repository's SDK selection, roll-forward behavior, and failure conditions. |
| global.json | Selects the stable .NET 10 SDK line and retains the Microsoft.Testing.Platform runner configuration. |
| Directory.Build.props | Removes the LangVersion override so the target framework determines the default C# language version. |
Review effort: Lite
## Summary Promotes the hub resync against ProjectTemplate 2.0.1421 to `main`. Four pull requests, each already reviewed and merged into `develop`: - #685 re-vendors the stale `AGENTS.md` and `GOVERNANCE.md` verbatim sections and adds the hub's "Interrupts" rules to `CODESTYLE.md`. It also brings `AUDIT.md` and `.github/copilot-instructions.md` current and refreshes the carried Skills tree. A local "NxWitness Conventions" bullet exempts the `exec` into the daemon in `Docker/entrypoint.sh` and the `svc-nx-*` s6 run scripts from the interrupt rules, pending ptr727/ProjectTemplate#4097. - #686 runs the `.vscode/tasks.json` Lint group through the hub's `docker_lint.py` and adds `Lint: Prose` and `Lint: EOL`. The `.husky/pre-commit` hook gains the diff-scoped prose gate and the EOL check through `hub_fetch_run.py`, and the repo docs describe both. - #687 carries the hub's .NET SDK-line rule into the `CODESTYLE.md` ".NET" summary and refreshes the `dotnet-codestyle` and `merge-and-release` skills. - #688 adds the `sdk` block to `global.json`, `10.0.100` with `rollForward` `latestFeature` and `allowPrerelease` `false`. It also drops `LangVersion` from `Directory.Build.props`, so a host with a newer SDK major builds and formats on the same 10.0 line as CI. The audit of `develop` at `a7a6f5e`, run `2026-11-12T22:13:19Z | hub 009d3e5e`, reports no defect or letter. Two intent advisories remain, for `WORKFLOW.md` and `version.json`. Both were checked against the hub, with nothing to adopt. This PR closes no issue. #684, the `ARCHITECTURE.md` variant description, stays open as its own work. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
This is the intent-files step of a hub resync against ProjectTemplate 2.0.1421, per the hub's
RESYNC.mdsection 3 step 6. It comes from audit run2026-11-12T21:48:14Z | hub 009d3e5eand follows #687, which carried the rule intoCODESTYLE.mdand thedotnet-codestyleskill.global.json. Adds the hub snippet'ssdkblock,10.0.100withrollForwardlatestFeatureandallowPrereleasefalse, so the repo builds on the newest installed release 10.0.x SDK. It keeps thetestrunner key, sinceCreateMatrixTestsruns on Microsoft.Testing.Platform.Directory.Build.props. Drops<LangVersion>latest</LangVersion>, so the C# version follows thenet10.0TFM rather than the installed compiler. No project here targetsnetstandard, so the rule's one exception does not apply.OPERATIONS.md. Describes the SDK selection in place of the old note thatglobal.json"deliberately carries nosdksection". That note was the finding the Carry the Hub's .NET SDK-Line Rule Into CODESTYLE.md and the Skills Tree #687 local pass deferred here.CI is unaffected. The pinned hub workflows install
dotnet-version: 10.x, which satisfies the10.0.100floor.Verification
On a host with SDKs 9.0, 10.0 and 11.0 installed, the SDK now resolves to 10.0.404, where it picked 11.0.100 before.
dotnet build: 0 errors.dotnet format style --verify-no-changes --severity=info: pass. It failed with IDE0028 on unchanged code under SDK 11.HUSKY=0:.NET Format, the prose gate and the EOL gate.Local Review
One recorded
local-strict-reviewpass at thefrontiertier, ond8ce665, found nothing, and the prose gate is clean. The branch forks fromef2566b, before #687 merged. Its three files are disjoint from #687's, so the diff againstdevelopis the same and merges cleanly.🤖 Generated with Claude Code