How to get Dnn version from c#

82 Views Asked by At

As DotNetNuke.Common.Globals.DataBaseVersion getting obsolete, how to get "Dnn Database Version" using c#

1

There are 1 best solutions below

0
Jeremy Farrance On BEST ANSWER

In the debug output of my theme/skin files I usually just do this as a 1 liner. Not sure if its the best, modern way, but currently not deprecated.

<p>DNN <%= DotNetNuke.Application.DotNetNukeContext.Current.Application.Version.ToString(3) %></p>

enter image description here