MVC Versions and Version History - Which version am I using
In order to detect which version of MVC a particular project is built with there are various techniques as follows
Check the MVC DLL version
a) Open the project in Visual Studio
b) Expand the References in the MVC Project and find the System.Web.Mvc DLL
c) Right click on it and click properties
d) Observe the Runtime version and Version properties as below
The above is from a Katmaid project which I know be be MVC 4
Another example below from my Paxium project which is confusing as it shows a Runtime version of 4 but a Version of 5
In actual fact if you look at this article
And look at the hints in the properties window you will see that the Version is the DLL version and the Runtime version is the Version of the .Net runtime this assembly was compiled against as below
View The MVC DLL In Assembly Explorer
a) Open the project in Visual Studio
b) Expand the References in the MVC Project and find the System.Web.Mvc DLL
c) Right click on it and click view in Assembly Explorer
d) Observe the Results which contains lots of indicators as to which version it is
See below for Katmaid which is MVC 4
See below for Paxium which is MVC 5
View The MVC DLL In Object Browser
a) Open the project in Visual Studio
b) Expand the References in the MVC Project and find the System.Web.Mvc DLL
c) Right click on it and click view in Object Browser
d) Observe the Results which contains lots of indicators as to which version it is
See below for Katmaid which is MVC 4
See below for Paxium which is MVC 5
View The MVC DLL Properties in Windows Explorer
a) Open Windows Explorer and navigate to the bin folder and find the System.Web.Mvc DLL
c) Right click on it and click properties
d) Observe the Results which contains lots of indicators as to which version it is
See below for Katmaid which is MVC 4
See below for Paxium which is MVC 5
View The MVC DLL Properties in .Net Reflector
a) Open Windows Explorer and navigate to the bin folder and find the System.Web.Mvc DLL
c) Right click on it and select browse with .Net Reflector
d) Observe the Results which contains lots of indicators as to which version it is