How to determine the current version of ASP.NET MVC?

前端 未结 7 2032
北荒
北荒 2021-01-30 09:56

Is there a way to get the current version of ASP.NET MVC in code? Reflecting on MVC assemblies is needed? Any new IIS server variables? Some property to read in HTTP context?

7条回答
  •  灰色年华
    2021-01-30 10:26

    Open the packages.config in your solution explorer..

    Then look for ASP.NET MVC package ID, as follows:

    id="Microsoft.AspNet.Mvc" version="5.2.2" targetFramework="net452"

提交回复
热议问题