Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Installing and Developing ASP.NET MVC 4 Application

DZone's Guide to

Installing and Developing ASP.NET MVC 4 Application

·
Free Resource

Introduction:

In this article we are going to see how to install required tool for ASP.NET MVC 4 and develop a simple MVC 4 application using the Visual Studio 2010. Asp.Net MVC 4 framework is used for developing reliable application using the Model View Controller pattern. As of now MVC 4 is currently a developers preview and not released as a RTM. We can use this to develop mobile and windows application along with the Windows Azure environment. Let us see the step by step process on installing the MVC 4 framework and create a simple application.

Steps:

For installing the MVC 4 framework, we can download it using the below link

http://www.microsoft.com/web/gallery/install.aspx?appid=MVC4VS2010&prerelease=true

Once we clicked on the above link we can see the Web Platform Installer will be opened and the MVC 4 framework is available for installation as shown in the screen below.

2012-01-04 22h09_16

Now click on Install and we can see the prerequisites required to install the framework as shown in the screen below.

2012-01-04 22h17_44

We can see the installation progresses and once the installation is completed we will be navigated to the finish screen as shown in the screen below.

2012-01-04 22h20_10

Screen after the installation gets completed.

2012-01-04 23h03_53

Now open Visual Studio 2010 Environment and create a new project. We can see the ASP.NET MVC 4 application template available as shown in the screen below.

2012-01-04 23h07_06

Now we can see a window pop up to select the type of the application template. We will select the internet application as shown in the screen below.

2012-01-04 23h09_33

Now click on OK to proceed further and we can see the application opened in the Visual Studio IDE as shown in the screen below.

2012-01-04 23h10_47

Now to check the default template project look like just build and execute the application by pressing F5 and we can see the MVC 4 application opened as shown in the screen below.

2012-01-04 23h12_28

Now we are well set to make changes to our MVC 4 application as per the requirement.

Topics:

Published at DZone with permission of Karthikeyan Anbarasan, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}