locked
Mvc Version Information RRS feed

  • Question

  • User-1134632663 posted

    How to find out mvc  version using c#?

    Thursday, May 10, 2018 5:49 PM

Answers

  • User283571144 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 11, 2018 2:18 AM

All replies

  • User283571144 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 11, 2018 2:18 AM
  • User-1134632663 posted

    thanks for post this answer

    Friday, May 11, 2018 6:37 PM