Skip to content

Update the ASP.NET Core hosted Blazor WebAssembly template to use _Host.cshtml #25631

Closed as not planned
@danroth27

Description

@danroth27

Currently the ASP.NET Core hosted Blazor WebAssembly uses a static index.html file. It would be more flexible to instead use a _Host.cshtml file like the Blazor Server template does. The root App component could then be setup using the component tag helper with RenderMode.WebAssembly. This would make it easier for the user to turn on prerendering if that's what they want to do. Note that I'm not proposing that we enable prerendering by default, as that adds a bunch of additional complexity for the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:1Work that is critical for the release, but we could probably ship withoutaffected-fewThis issue impacts only small number of customersarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssemblyfeature-templatesseverity-minorThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions