skip to Main Content

I was trying to create an empty MVC project in VS 2022 but I couldn’t find true project type. When I chose "Asp.NET Web Application (Model-View-Controller)", it wasn’t empty. When I chose "Asp.NET Web Application", it wasn’t a MVC project. Which project type should I choose to create an empty MVC project?

2

Answers


  1. You have hit two correct choices.
    As said in the projects’ descriptions, the ASP .NET Web App Empty really is empty and you need to implement MVC yourself.
    The default Asp.NET Web Application (Model-View-Controller) project includes example Views and Controllers, which you can always delete or modify if want to.

    enter image description here

    Login or Signup to reply.
  2. In Visual Studio 2022 Installer, below the ".NET Framework 4.8 targeting pack", there is a component named ".NET Framework project and item templates" and by default, this component was not selected.
    selected and installed it.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search