dotnetnukednn9

How to get Dnn version from c#


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


Solution

  • 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