Skip to content

Select the .NET 10 SDK Line in global.json and Unset LangVersion - #688

Merged
ptr727 merged 1 commit into
developfrom
resync-globaljson-1112
Nov 12, 2026
Merged

ptr727 merged 1 commit into
developfrom
resync-globaljson-1112

Conversation

@ptr727

@ptr727 ptr727 commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Summary

This is the intent-files step of a hub resync against ProjectTemplate 2.0.1421, per the hub's RESYNC.md section 3 step 6. It comes from audit run 2026-11-12T21:48:14Z | hub 009d3e5e and follows #687, which carried the rule into CODESTYLE.md and the dotnet-codestyle skill.

  • global.json. Adds the hub snippet's sdk block, 10.0.100 with rollForward latestFeature and allowPrerelease false, so the repo builds on the newest installed release 10.0.x SDK. It keeps the test runner key, since CreateMatrixTests runs on Microsoft.Testing.Platform.
  • Directory.Build.props. Drops <LangVersion>latest</LangVersion>, so the C# version follows the net10.0 TFM rather than the installed compiler. No project here targets netstandard, so the rule's one exception does not apply.
  • OPERATIONS.md. Describes the SDK selection in place of the old note that global.json "deliberately carries no sdk section". 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 the 10.0.100 floor.

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.
  • The test executable ran 21 tests, all passed.
  • The commit went through the full Husky pre-commit hook, with no HUSKY=0: .NET Format, the prose gate and the EOL gate.

Local Review

One recorded local-strict-review pass at the frontier tier, on d8ce665, found nothing, and the prose gate is clean. The branch forks from ef2566b, before #687 merged. Its three files are disjoint from #687's, so the diff against develop is the same and merges cleanly.

🤖 Generated with Claude Code

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]>
Copilot AI lite review requested due to automatic review settings November 12, 2026 22:09
@ptr727

ptr727 commented Nov 12, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head d8ce6651b35f4c80ede8dfda30a75038177930e9, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between de3057e and d8ce665.

Files selected for processing: 3

  • Directory.Build.props
  • OPERATIONS.md
  • global.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@codecov

codecov Bot commented Nov 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.01%. Comparing base (ef2566b) to head (d8ce665).
⚠️ Report is 1 commits behind head on develop.

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           
Flag Coverage Δ
dotnet 57.01% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 LangVersion override 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

@ptr727
ptr727 merged commit a7a6f5e into develop Nov 12, 2026
15 checks passed
@ptr727
ptr727 deleted the resync-globaljson-1112 branch November 12, 2026 22:13
ptr727 added a commit that referenced this pull request Nov 12, 2026
## 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)
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