tags:

views:

25

answers:

1

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?

A: 

Via Reflection:

typeof (Controller).Assembly.GetName().Version
jfar
very nice!I'm checked MvcHandler.GetMvcVersionString() in mvc source code(but private method,regret..).
takepara