Skip to content

Razor component item template uses wrong extension #10945

@SteveSandersonMS

Description

@SteveSandersonMS

Steps:

  1. In VS solution explorer, right-click on a folder inside a Blazor project (e.g., the Pages folder) and choose Add -> Item
  2. From the dialog, choose Razor Component

Expected: Prompted file extension should be .razor
Actual: It's .cshtml

Sidenote: It would be great if the Razor Component item template also appeared in the initial context menu alongside Razor Page and Controller

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    DoneThis issue has been fixedExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions