Replace your HomeController Index method with following code
public string Index()
{
return typeof(Controller).Assembly.GetName().Version.ToString();
}
Using Reflection
typeof(Controller).Assembly.GetName().Version.ToString()
Using Project References folder
Expand References folder => Search System.Web.Mvc =>
Right Click on it => Click on Properties => Property details window open
=> Look at the Version property
No comments:
Post a Comment