There are two ways by which we can find the version of MVC in which project is build, they are as follows:
1. At design time: In the solution explorer, expand "References" folder. Right click on System.Web.Mvc assembly and select "Properties" and you can find the version that's used as shown below.
2. At runtime using code: typeof(Controller).Assembly.GetName().Version.ToString();
1. At design time: In the solution explorer, expand "References" folder. Right click on System.Web.Mvc assembly and select "Properties" and you can find the version that's used as shown below.
2. At runtime using code: typeof(Controller).Assembly.GetName().Version.ToString();
0 comments:
Post a Comment