Skip to content

ASP.NET Core Web App (MVC) and other project types lost some templates #62353

Open
@CattyCathy

Description

@CattyCathy

OS

Windows 24H2

Visual Studio Version

17.14.5

.NET Version

.NET 8 and 9

Description

I'm trying to develop a project with ASP.NET Core Web App and following the tutorial, and I can't finish scaffolding pages like https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/adding-model?view=aspnetcore-9.0&tabs=visual-studio#scaffold-movie-pages , I followed the steps and then it show error to me.

Image

Image

Add - New Item pane doesn't have a template called "MVC Controller with views, using Entity Framework".

I also tested other types of projects, including:

  • ASP.NET Core Web App (MVC)
  • ASP.NET Core Web App (Razor Pages)
  • Blazor Web App
  • Blazor Server App

None of them can finish adding scaffold items with Add - New Scaffolded Item/

Please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions