Click here to Skip to main content
11,575,925 members (56,990 online)
Click here to Skip to main content

ASP.NET MVC 4 - Part [0] - Setup Environment

, 7 Mar 2013 CPOL 61.7K 92
Rate this:
Please Sign up or sign in to vote.
Setup Environment for ASP.NET MVC 4 in Visual Studio. (Install ASP.NET MVC 4 using Web Platform Installer / Standalone Installer / Nuget )


ASP.NET MVC 4 is a framework for building scalable, standards-based web applications using well-established design patterns and the power of ASP.NET and the .NET Framework.

You can use ASP.NET MVC 4 with Visual Studio 2010 and 2012. As of now previous visual studio versions doesn't support ASP.NET MVC 4.

This article will guide you through the step by step installation of ASP.NET MVC 4.


Visual Studio 2012 is already packaged with ASP.NET MVC 4. Visual Studio 2010 was packaged with MVC 2 as MVC 3 and MVC 4 was released after Visual Studio 2010 release.  

Visual Studio 2012 Express (Free) version also comes with ASP.NET MVC 4.  

To Install ASP.NET MVC 4 to Visual Studio 2010, you must have SP1 installed for VS 2010, If you don't have Service Pack 1 installed for Visual Studio then please click here. This service pack is also available in .ISO format

There are multiple options available for ASP.NET MVC 4 installation. You may choose the one from the below option. 

How to Install    

There are three different options for installing ASP.NET MVC 4 for Visual Studio 2010. 

  • ASP.NET MVC 4 Web Platform Installer for Visual Studio 2010 SP1.  
  • Download the standalone ASP.NET MVC 4 installer executable. 
  • Via ASP.NET MVC 4 NuGet Packages 
I will be explaining all these options from a beginner's perspective. 

Using Web Platform Installer  

Web Platform Installer makes it easy for you to download, install. ASP.NET MVC 4 also can be installed through the Web PI.

To Install ASP.NET MVC 4 using Web Platform Installer, please click here  

When you click on the above link, new tab will get opened with the below page,

ASP.NET MVC 4 Install Web Platform Installer - Shemeer NS

Click on the "Install ASP.NET MVC 4" button. 

Click on "Install Now" button.  That will popup a save dialog as per your web browser setting.

Once the file downloading is completed, then open the file from the downloaded location like above, Once you execute the downloaded file that will prompt a UAC or similar window like below 

If you click "Yes" then it will show the below screen

The below files will be downloaded (approx 33 MB) from internet.  (If you want to use this setup later also then you can choose standalone installer) 

To continue with installation click on "Install" button, and Accept the Licence terms by clicking "Accept" button. Once you "Accepted" then it will download and install ASP.NET MVC 4.

Using Standalone installer 

If you want to have a copy of the setup file or if you have multiple machines that needs to be setup with MVC 4 then standalone installer is the right option. 

To install ASP.NET MVC 4 with standalone installer, please click here 

If you click on the above link then you will be redirected to the below page,

ASP.NET MVC 4 Install using Standalone Installer - Shemeer NS

Click Download and Save the file to a particular location.

ASP.NET MVC 4 Install using Standalone Installer - Shemeer NS

ASP.NET MVC 4 Install using Standalone Installer - Shemeer NS

Once the downloading completed then go to the saved location and then execute the file,

ASP.NET MVC 4 Install using Standalone Installer - Shemeer NS

It will show the security message / UAC as per your settings, Click on the "Yes" / "Run" button,

ASP.NET MVC 4 Install using Standalone Installer - Shemeer NS

Once you have clicked on the above button then you will get the "Installation" UI.

ASP.NET MVC 4 Install using Standalone Installer - Shemeer NS

By clicking the above "Install" button, ASP.NET MVC 4 will be installed for Visual Studio 2010 SP 1. 

Just Open Visual Studio 2010 , ASP.NET MVC 4 will be listed in the available templates,

ASP.NET MVC 4 - Visual Studio 2010 SP 1 - Shemeer NS 

Via Nuget Packages 

"NuGet is a Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects that use the .NET Framework. When you add a library or tool, NuGet copies files to your solution and automatically makes whatever changes are needed in your project, such as adding references and changing your app.config or web.config file. When you remove a library, NuGet removes files and reverses whatever changes it made in your project so that no clutter is left." from

To know more about ASP.NET MVC 4 NuGet package, please click here.

If you have already NuGet package manager installed then you will get the below menu option. 

You will get the below screen after clicking on the package manager console,

ASP.NET MVC 4 Install using Nuget package - Shemeer NS

Then type the below command,  (make sure that you have already opened a valid project) 

Install-Package AspNetMvc  

Pressing "Enter" key will execute the command,

Once it's done you can see that the references are added to the project.

ASP.NET MVC 4 Install using Nuget package - Shemeer NS

The below given  packages folder is added to the project location,

ASP.NET MVC 4 Install using Nuget package - Shemeer NS

the packages folder contains below folders, 

ASP.NET MVC 4 Install using Nuget package - Shemeer NS

If you don't have NuGet Package manager installed then go to Extension manager and search for NuGet

ASP.NET MVC 4 Install using Nuget package - Shemeer NS

Then Click "Download"

ASP.NET MVC 4 Install using Nuget package - Shemeer NS

ASP.NET MVC 4 Install using Nuget package - Shemeer NS 



In this article I have explained the installation steps for ASP.NET MVC 4 from a beginner's perspective. I hope you have enjoyed this article. 

I have put my time and efforts on all of my articles, please don't forget to mark your votes, suggestions and feedback to improve the quality of this and upcoming articles.     


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Shemeer NS
Software Developer (Senior)
India India
Technology Specialist | CodeProject MVP | Visual Studio Gallery Contributor | Author | Geek | Netizen | Husband | ChessPlayer

Most of my articles are listed on top 5 of the respective 'Best articles of the month' and some of my articles are published on ASP.NET WebSite's Article of the Day section.

Check my contributions in Visual Studio Gallery and Code Project

Technical Blog:
Twitter :
Google+ :

You may also be interested in...

Comments and Discussions

GeneralMy vote of 5 Pin
dracopql3-Sep-13 9:20
memberdracopql3-Sep-13 9:20 
GeneralMy vote of 4 Pin
Member 1022526822-Aug-13 2:05
professionalMember 1022526822-Aug-13 2:05 
GeneralMy vote of 5 Pin
defwebserver17-Jul-13 6:20
memberdefwebserver17-Jul-13 6:20 
GeneralMy vote of 2 Pin
Member 85237982-Jun-13 5:46
memberMember 85237982-Jun-13 5:46 
Inaccuracies in naming and declaration spellings, grammar, syntax, and omitted context; do not lend to the value of this series of articles. The idea that this is a good place for beginners to start is simply not a good one for these reasons. This particular part is simple, and the use of pictures is far superior to 'Indian' English in the technical explanations of them (Video would be better! With voiceover narration in 'American' English, or 'Indian' English, or German, for that matter). 'A picture tells a thousand words' is certainly the case here. If you need to have proofreading done; you should not rely on Microsoft's idea of spelling and grammar checking for such discussions with true beginners of such a technical nature. Although these articles are informative and useful; they do not constitute a 'place to start' for beginners.
A tutorial article format demands accuracy not just in technical definitions of detail that all coders recognize in code; but in technical conceptual terms as well. This article may work great for Indian coders who understand the information that you are trying to convey from a more common viewpoint; but it does not particularly work for me; and I am an experienced .NET, C#, C, T-SQL, SQL, JavaScript, HTML5, CSS3 coder.
This is perhaps why you have so few views on this otherwise notable effort. Besides that, I speak, read, and write three languages including English, and I know some vocabulary in Punjabi, Hindi, and Urdu; and I would not try to create such an article in Hindi! I appreciate your efforts though!!

modified 2-Jun-13 12:27pm.

GeneralRe: My vote of 2 Pin
Shemeer NS5-Jun-13 8:31
mvpShemeer NS5-Jun-13 8:31 
GeneralMy vote of 5 Pin
Hassan Oumar Mahamat7-Mar-13 13:01
memberHassan Oumar Mahamat7-Mar-13 13:01 
QuestionI can't Install MVC 4.0 Pin
destar771-Feb-13 17:36
memberdestar771-Feb-13 17:36 
AnswerRe: I can't Install MVC 4.0 Pin
Shemeer NS6-Feb-13 4:25
mvpShemeer NS6-Feb-13 4:25 
GeneralMy vote of 5 Pin
grv.jobs6-Jan-13 18:27
membergrv.jobs6-Jan-13 18:27 
GeneralMy vote of 5 Pin
Unque11-Oct-12 4:04
memberUnque11-Oct-12 4:04 
GeneralMy vote of 5 Pin
Akram El Assas7-Oct-12 0:08
memberAkram El Assas7-Oct-12 0:08 
GeneralRe: My vote of 5 Pin
Shemeer NS7-Oct-12 5:42
memberShemeer NS7-Oct-12 5:42 
GeneralA lot of images Pin
Violet Tape4-Oct-12 17:31
memberViolet Tape4-Oct-12 17:31 
GeneralRe: A lot of images Pin
Shemeer NS4-Oct-12 20:19
memberShemeer NS4-Oct-12 20:19 
GeneralRe: A lot of images Pin
Vaso0078-Oct-12 2:11
memberVaso0078-Oct-12 2:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150603.1 | Last Updated 7 Mar 2013
Article Copyright 2012 by Shemeer NS
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid