How to get the dnn module version using c#

168 Views Asked by At

I would like to get the version in a DotNetNuke Module. I try:

new ModuleController().GetModule(this.ModuleId).ModuleVersion

but its always -1.

On the .dnn file I have this definition:

<package name="xxxx" type="Module" version="02.01.88">

How could I get the "02.01.88" string?

1

There are 1 best solutions below

0
On BEST ANSWER

I just found that we could use:

new ModuleController().GetModule(this.ModuleId).DesktopModule.Version