Missing nested button in Visual Studio Community 2022

282 Views Asked by At

As seen in the image, the nested button is what is missing from my solution explorer. When I try creating a asp.net core web app model view controller mvc project I am not seeing the appropriate views and things are missing from the drop down menu.

What it should look like:

Nested button on solution explorer

Also this is what I should see and I'm not:

Image showing the nested button is not present

1

There are 1 best solutions below

9
Timothy G. On

Since you said ASP.NET MVC and not ASP.NET Core, this icon will not display according to the documentation:

In Visual Studio 2022 version 17.2 and earlier, this feature was only supported for ASP.NET Core projects. In version 17.3 and later the projects targetting .NET support file nesting.

Your project(s) need to be targeting ASP.NET Core (or with more recent versions of Visual Studio, .NET as its called now).