public static MvcHtmlString AppVersion( this HtmlHelper helper, Type mvcAssembly) { string version = mvcAssembly.Assembly.GetName().Version.ToString(); #if DEBUG version += " [debug]"; #endif return MvcHtmlString.Create(version); }