Create first ASP.NET MVC web application

In this tutorial, we will learn how to create our first an ASP.NET MVC web application. This tutorial will assume you have a little or no knowledge of ASP.NET MVC hence it will try to explain in detail the processes involved in creating an ASP.NET MVC Application


  • Visual Studio(2017 and above) installed on your Local Machine which can be downloaded here https://visualstudio.microsoft.com/downloads

Creating our project

To create our project, we open the Visual Studio, and then follow the guide ("File >

New > Project > Visual C# Web > ASP.NET Web Application").

. asp.net creating our project

Enter your desired application name and then, select "MVC" template and it will scaffold and MVC template for your project.

new asp.net web application

Remenber to change the Authentication to Individual User Account using the Change Authentication button as shown in the snapshot above.

Project Structure

After a successful creation of the application(ActivityTab) in our case, explore the project folder in the Solution Explorer. The project files should look as the project files as shown in the snapshot below:

asp.net project structure

Now, press F5 to run the project in debug mode or Ctrl + F5 to run the project without debugging. It will open home page in the browser as shown below.

asp.net activities tab

Congratulations, you have created your first MVC web application. In the upcoming tutorials, we will explore in details, the features and functionalities that ASP.NET MVC provides for us.

Previous: Getting started with ASP.NET MVC
Next: MVC Architecture