There are two ways to determine the versions installed in your machine.
At design timeDuring designing, go to “Solution Explorer." Right click on it and expand the “References” folder. Right click on “Web.MVC” assembly. Then, select “Properties” where you can find the versions.
Please refer to the below images.
The above blue mark represents the version 4.0.0.0 of MVC installed in our machine.
During Runtime we can use the below lines of code to find the version of MVC installed.
- typeof(controller).Assembly.Getname().Version.Tostring();
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.MVC;
- namespace MVC3Application.Controller {
- public class HomeController: Controller {
- public string Index() {
- return typeof(controller).assembly.Getname().Version.Tostring();
- }
- Public ActionResult About() {
- return view();
- }
- }
- }
Please refer to the below image.
If we run this above line of code, we will get the MVC version installed in our machine. Please refer to the below screenshot.
The blue mark indicates the version installed in your machine.

Hiren MaguniyaPosted Nov 21, 2018, 11:41 PM
Also you can check in web.config file which MVC version you are using in application.
Mukesh SagarPosted Jul 10, 2017, 5:16 AM
You can check the MVC version using the command prompt. It is installed in the folder "C:\Program Files (x86)\Microsoft ASP.NET". Check the directories under it. It will display the version number directory that is installed on the system.
Rajkiran SwainPosted Jul 8, 2017, 10:39 AM
Nice one swati .. keep it up ..