Share via


Prerequisite .net framework for MVC 5

Question

Friday, December 6, 2013 7:50 AM

Hi, 

what is prerequisite .net framework for MVC 5?

can i run the MVC5 application using .NET Framework 4. 0?

Thanks in Advance

All replies (3)

Friday, December 6, 2013 4:13 PM ✅Answered

MVC5 is required to run on .NET 4.5 and it is not supported by .NET 4.0, so you will need to ensure that you have .NET 4.5 installed on your local machine.

You can notice this by changing the targeted version of your local copy of Visual Studio by switching the available targeted frameworks. Notice when you target .NET 4.0, you'll recieve the option to create an MVC 4 application : 

However, when you switch the targeted version to .NET 4.5, you'll no longer see the option for MVC4 and instead the new "One ASP.NET" version which will create an MVC5 application : 

So aside from that, it should run perfectly fine on any version of Visual Studio 2013 that you have installed. If you still have Visual Studio 2012 however and want to create an MVC5 application, it is possible to handle that as well by using the Web Tools 2013.1 Update for Visual Studio 2012, which will allow you to create MVC5 applications in Visual Studio 2012 : 


Friday, December 6, 2013 9:13 AM

Looking at http://www.nuget.org/packages/Microsoft.AspNet.Mvc the prerequisites for MVC 5 are


Friday, December 6, 2013 2:51 PM

Hi,

The following are the prerequisites to start with the MVC 5: