Last post May 11, 2018 06:37 PM by Satyaprakash Samantaray
Member
433 Points
31 Posts
May 10, 2018 05:49 PM|Satyaprakash Samantaray|LINK
How to find out mvc version using c#?
Star
9831 Points
3120 Posts
May 11, 2018 02:18 AM|Brando ZWZ|LINK
Hi Satyaprakash Samantaray,
According to your description, I suggest you could try to get the mvc controller's assembly version to get the current MVC version.
The MVC controller class is under the System.Web.Mvc namespace.
More details, you could refer to below codes:
ViewBag.MvcVersion = typeof(Controller).Assembly.GetName().Version.ToString();
Image:
Best Regards,
Brando
May 11, 2018 06:37 PM|Satyaprakash Samantaray|LINK
thanks for post this answer
Member
433 Points
31 Posts
Mvc Version Information
May 10, 2018 05:49 PM|Satyaprakash Samantaray|LINK
How to find out mvc version using c#?
Star
9831 Points
3120 Posts
Re: Mvc Version Information
May 11, 2018 02:18 AM|Brando ZWZ|LINK
Hi Satyaprakash Samantaray,
According to your description, I suggest you could try to get the mvc controller's assembly version to get the current MVC version.
The MVC controller class is under the System.Web.Mvc namespace.
More details, you could refer to below codes:
Image:
Best Regards,
Brando
Member
433 Points
31 Posts
Re: Mvc Version Information
May 11, 2018 06:37 PM|Satyaprakash Samantaray|LINK
thanks for post this answer