Skip to content

Rename blazor-wasm-servicedefaults template shortName to blazorwasm-servicedefaults and ship with Blazor icon #66882

@danroth27

Description

@danroth27

Summary

The new Blazor WebAssembly Service Defaults template (added for Aspire integration in .NET 11) ships with shortName blazor-wasm-servicedefaults. The existing standalone WASM template ships with shortName blazorwasm. We should rename the new template to blazorwasm-servicedefaults for consistency.

Separately, the new template renders with the default .NET icon in IDE template pickers because its ide.host.json does not specify an icon. The existing blazorwasm template references the Blazor icon. We should ship the Blazor icon for the service defaults template too.

Suggested changes

In src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWasmServiceDefaults-CSharp/.template.config/:

  1. template.json — change "shortName": "blazor-wasm-servicedefaults" to "shortName": "blazorwasm-servicedefaults".
  2. ide.host.json — add "icon": "ide/icon.ico" and ship the Blazor icon.ico under ide/ (same icon used by the existing blazorwasm template at ComponentsWebAssembly-CSharp/.template.config/ide/icon.ico).

Repro

dotnet new list blazor on .NET 11 Preview 5 SDK shows:

Blazor Web Worker                    blazorwebworker              [C#]      Web/Blazor/WebAssembly/Worker/Library
Blazor WebAssembly Service Defaults  blazor-wasm-servicedefaults  [C#]      Blazor/WebAssembly/Library/OpenTelemetry
Blazor WebAssembly Standalone App    blazorwasm                   [C#]      Web/Blazor/WebAssembly/PWA

The hyphen between blazor and wasm is inconsistent with the existing blazorwasm shortName.

Notes

Found while building a Blazor WASM + Aspire 13.5 demo for Microsoft Build 2026.

Metadata

Metadata

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions