MVC App

Steps to Create MVC Application

Step 1: Open Visual Studio 2022

Open Visual Studio 2022. On the start screen, click Create a new project.

Visual Studio 2022 Create Project Screen

Step 2: Search

Choose ASP.NET Web App (Model-View-Controller) and language C#.

Image

Step 2: Select Project Template

Choose ASP.NET Web Application (Model-View-Controller) and language C#.

Image

Click the Next button, Visual Studio will take a moment to configure the project.


Configure Your New Project

In this screen, you need to configure the basic settings for your ASP.NET web application.

  1. Enter Your Project Name
    Type a suitable name for your web application in the Project Name field.
  2. Project Location
    Select the folder location where your project will be saved on your system.
  3. Select .NET Framework Version
    Choose the required .NET Framework version from the dropdown list.
  4. Click the Create Project Button
    After entering all the details, click the Create button to create the project.
Image

Select Project Template

In this step, you need to choose the project template and required options for your ASP.NET application.

  1. Select Empty Template
    Choose the Empty project template. This template does not contain any default files or content and is used to create a clean ASP.NET application from scratch.
  2. Add Folders & Core References
    Under this section, you will see the following options:
    • Web Forms
    • MVC
    • Web API
  3. Select MVC
    Tick (✔) the MVC option to add Model, View, and Controller folders and core references to the project.
  4. Click the Create Button
    After selecting all the required options, click the Create button to create the project.
Image

After clicking the Create button, a loading window appears while the project is being created.

Image

Project Created Successfully

The ASP.NET web application has been created successfully.

You can now start developing your application using the MVC architecture.

Image