Click here to Skip to main content
15,867,686 members
Articles / Web Development / ASP.NET

Using ASP.NET MVC5 within Visual Studio 2012

Rate me:
Please Sign up or sign in to vote.
4.57/5 (4 votes)
6 Apr 2014CPOL2 min read 14.2K   2   7
Using ASP.NET MVC5 within Visual Studio 2012

It’s always nice to be using the latest and greatest of things, however not everyone really enjoys “change” (especially with regard to their development environments).

So this quick article will cover how to go about creating and using ASP.NET MVC5 applications within Visual Studio 2012 for those out there that want to keep up with the newest version of their favorite development technology but may not have the courage (or the cash) to upgrade to Visual Studio 2013.

Visual Studio 2012 by default will not offer you the option to create an MVC5 Web Application.

Visual Studio 2012 by default will not offer you the option to create an MVC5 Web Application.

In November of this year, the .NET team released the ASP.NET and Web Tools 2013.1 Update for Visual Studio 2012. I wish I could say the steps necessary to integrate MVC5 into Visual Studio 2012 were more complicated than simply downloading this, but they aren’t.

You can download the update itself from the link provided below :

You’ll find that after installing the update and restarting Visual Studio 2012, you’ll be able to create a new ASP.NET MVC5 application through Visual Studio 2012:

After installing the update, you'll see that MVC5 is now available in Visual Studio 2012.

After installing the update, you’ll see that MVC5 is now available in Visual Studio 2012.

Great! What Else?

The update not only provides the necessary foundation for creating MVC5 applications, but it features the following additional improvements as well:

  • Bootstrap Integration – All MVC5 applications and application templates by default will have their markup “bootstrap-ified” using Twitter Bootstrap (which is integrated into the applications by default).
  • Web API 2 Templates – The latest version of Web API template isn’t going to be left out either. You’ll be able to create new Web API services just like MVC5 applications.
  • Entity Framework 6 – Entity Framework 6 will be installed and included within this update and will be used for all of the scaffolding operations in Web API or MVC5.
  • Improved Scaffolding - This improved scaffolding functions as a code generation framework for ASP.NET Web applications. It makes it easy to add boilerplate code to your project that interacts with a data model and will ensure that any items added through scaffolding will have all of the necessary dependencies (packages, references, etc.).
  • Razor Editor Improvements – You’ll find that the toolkit has a variety of improvements and supports the Razor 3 engine.
  • New NuGet – This update also includes the latest version of NuGet 2.7, which removes some of the need for manually restoring packages that go missing and also ensuring that all of your packages are up to date.

So if you are a bit hesitant to give Visual Studio 2013 a try, but you want to play around with some of the newer features and development templates that it provides, I would recommend downloading and checking out this update.


Filed under: CodeProject, Development

License

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


Written By
Software Developer (Senior)
United States United States
An experienced Software Developer and Graphic Designer with an extensive knowledge of object-oriented programming, software architecture, design methodologies and database design principles. Specializing in Microsoft Technologies and focused on leveraging a strong technical background and a creative skill-set to create meaningful and successful applications.

Well versed in all aspects of the software development life-cycle and passionate about embracing emerging development technologies and standards, building intuitive interfaces and providing clean, maintainable solutions for even the most complex of problems.

Comments and Discussions

 
GeneralMy vote of 4 Pin
Gaurav Aroraa27-Oct-14 11:40
professionalGaurav Aroraa27-Oct-14 11:40 
QuestionOne information regarding installation error Pin
Tridip Bhattacharjee6-Apr-14 22:30
professionalTridip Bhattacharjee6-Apr-14 22:30 
AnswerRe: One information regarding installation error Pin
paymerich7-Apr-14 4:17
professionalpaymerich7-Apr-14 4:17 
GeneralRe: One information regarding installation error Pin
Tridip Bhattacharjee7-Apr-14 4:30
professionalTridip Bhattacharjee7-Apr-14 4:30 
GeneralRe: One information regarding installation error Pin
Tridip Bhattacharjee7-Apr-14 4:32
professionalTridip Bhattacharjee7-Apr-14 4:32 
GeneralRe: One information regarding installation error Pin
paymerich7-Apr-14 5:13
professionalpaymerich7-Apr-14 5:13 
GeneralRe: One information regarding installation error Pin
paymerich15-Apr-14 9:02
professionalpaymerich15-Apr-14 9:02 

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

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