asp.net-core.net-corevisual-studio-2022.net-8.0

ASP.NET Core 8.0 web application tool is not showing up in Visual Studio 2022


I am using Visual Studio 2022 with .NET 8.0, but I am not getting an option for creating an ASP.NET Core web application without razor pages.

I don't want to choose MVC - just normal ASP.NET Core web application - an option I am not finding there.

So how I can find that option?


Solution

  • Follow below steps.

    1. Open Visual Studio 2022.

    2. Click Create a new project.

    3. Search for ASP.NET Core Empty.

    4. Select the ASP.NET Core Empty template and click Next.

    5. Choose .NET 8.0 as the target framework.

    6. Click Create.

    This template will give you the setup with just the Program.cs and Startup.cs , and no Razor Pages or MVC.

    enter image description here