Skip to content

[release/11.0] Update template precedence to 11000 for BlazorWasmServiceDefaults and BlazorWebWorker - #70485

Merged
wtgodbe merged 1 commit into
dotnet:release/11.0from
wtgodbe:wtgodbe/11-template-precedence
Nov 11, 2026
Merged

wtgodbe merged 1 commit into
dotnet:release/11.0from
wtgodbe:wtgodbe/11-template-precedence

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Nov 10, 2026

Copy link
Copy Markdown
Member

Update template precedence to 11000 for BlazorWasmServiceDefaults and BlazorWebWorker

Fix precedence in two 11.0 project templates (10000 -> 11000)

Description

The BlazorWasmServiceDefaults-CSharp and BlazorWebWorker-CSharp templates were missed in the 11.0 major version update and still have "precedence": "10000". Every other template in Web.ProjectTemplates uses 11000 (Major × 1000), and their identity is already *.11.0. Main has the equivalent 12000 fix in #70484.

Customer Impact

If several versions of the template package are installed side by side, dotnet new uses precedence to pick which version a short name resolves to. With 10000, the 11.0 versions of these templates would tie with any 10.0 versions that also used 10000, so dotnet new might not pick 11.0.

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Metadata-only change to two template.json files, matching the value every other 11.0 template already uses.

Verification

  • Manual (required)
  • Automated

Not yet verified manually with dotnet new.

Packaging changes reviewed?

  • Yes
  • No
  • N/A

@wtgodbe
wtgodbe requested a review from a team as a code owner November 10, 2026 23:21
Copilot AI balanced review requested due to automatic review settings November 10, 2026 23:21
@wtgodbe wtgodbe added the tell-mode Indicates a PR which is being merged during tell-mode label Nov 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues for the template precedence metadata update.

No open issues 🎉

What changed in this PR

Corrects precedence metadata for two .NET 11 Blazor templates so they rank above .NET 10 templates when installed side by side.

Changes:

  • Raises both templates’ precedence from 10000 to 11000, matching their existing .11.0 identities and the release’s template convention.
  • Changes metadata only; generated project content is unchanged.
File Description
src/​ProjectTemplates/​Web.ProjectTemplates/​content/​BlazorWebWorker-CSharp/​.template.config/​template.json Sets Blazor Web Worker template precedence to 11000.
src/​ProjectTemplates/​Web.ProjectTemplates/​content/​BlazorWasmServiceDefaults-CSharp/​.template.config/​template.json Sets Blazor WebAssembly Service Defaults template precedence to 11000.

Review effort: Balanced

@PureWeen

Copy link
Copy Markdown
Member

/review

@github-actions

Copy link
Copy Markdown
Contributor

Review not published (BLOCKED): The frozen bundle's diff and head source disagree, so the required evidence is internally inconsistent.

No partial findings were published.

Generated by ASP.NET Core Pull Request Review for #70485 · copilot · gpt56 · 47.9 AIC · ⌖ 20.2 AIC · ⊞ 18.8K · ◷
Comment /review to run again

@wtgodbe
wtgodbe merged commit aa4d420 into dotnet:release/11.0 Nov 11, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tell-mode Indicates a PR which is being merged during tell-mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants