Which version of MVC am I using?

.Netasp.net MvcVisual StudioVersion

.Net Problem Overview


I can't find it for some reason, feeling a little dumb. How do I know? I'm using .net 4 with VS2010.

.Net Solutions


Solution 1 - .Net

Open web.config file and find the System.Web.Mvc assembly definition:

assembly="System.Web.Mvc, Version=3.0.0.0 ..."

It's an MVC3 as you see. Via web you can use MvcDiagnostics which is similar to phpinfo() functionality in PHP.

Solution 2 - .Net

Select the System.Web.Mvc assembly in the "References" folder in the solution explorer. Bring up the properties window (F4) and check the Version

Reference Properties

Solution 3 - .Net

Another solution is to search for mvc in nuget (right click on your MVC project in visual studio and select "Manage Nuget Packages").

This will show you the version currently installed -enter image description here

And it'll also allow you to update the MVC version - enter image description here

Solution 4 - .Net

typeof(Controller).Assembly.GetName().Version

Gives the current version programmatically.

Solution 5 - .Net

I had this question because there is no MVC5 template in VS 2013. We had to select ASP.NET web application and then choose MVC from the next window.

You can check in the System.Web.Mvc dll's properties like in the below image.

enter image description here

Solution 6 - .Net

Well just use MvcDiagnostics.aspx It shows lots information about current MVC instalations, and also helps with debuging. You can find it in MVC source or just Google for it.

Solution 7 - .Net

I chose System.web.MVC from reference folder and right clicked on it to go property window where I could see version of MVC. This solution works for me. Thanks

Solution 8 - .Net

In Solution Explorer open packages.config and find Microsoft.AspNet.MVC:

package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net461"

From the above we can see it's an Asp.Net MVC 5.2.3 Version.

Moreover packages.config file also helps us to track all the installed packages with their respective versions.

Solution 9 - .Net

Navigate to "C:\Program Files (x86)\Microsoft ASP.NET" folder. You will see "ASP.NET MVC 4" or something like that. To know detail navigate to "C:\Program Files (x86)\Microsoft ASP.NET{your MVC version}\Assemblies\System.Web.Mvc.dll" Right click and see the version.

Solution 10 - .Net

In Mvc You can do it by opening Web.config file it comes under bottom of your project file

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionEKetView Question on Stackoverflow
Solution 1 - .NetArtem KoshelevView Answer on Stackoverflow
Solution 2 - .NetMichael ShimminsView Answer on Stackoverflow
Solution 3 - .NetAchillesView Answer on Stackoverflow
Solution 4 - .NetDropAndTrapView Answer on Stackoverflow
Solution 5 - .NetNagaraj RaveendranView Answer on Stackoverflow
Solution 6 - .NetVincoView Answer on Stackoverflow
Solution 7 - .NetBalaji KJView Answer on Stackoverflow
Solution 8 - .NetAbhishek DuppatiView Answer on Stackoverflow
Solution 9 - .NetShweView Answer on Stackoverflow
Solution 10 - .Netfiroz khanView Answer on Stackoverflow