In runtime
public class HomeController : Controller
{
public string Index()
{
// use to see version of mvc used in project
return typeof(Controller).Assembly.GetName().Version.ToString();
}
}
In design time
Inside Project
go to References
and then right-click on System.Web.Mvc
and select properties
.