How to move DNN module to different DNN install

时间:2015-07-31 20:24:29

标签: vb.net dotnetnuke dotnetnuke-module

I have a DNN version 5 site that has modules that I want to move to another newer DNN 7 site. In the file system for the DNN 5 install I have that module as a collection of .ascx and .vb files. I also have the .dnn file.

I've been searching around how to do this and it seems that I need to package these all those .ascx and .vb files together to install them in my DNN 7 site. Is there no way to simply install them directly from the .dnn manifest file that I have?

Packaging the files up seems pretty involved, such as getting the Visual Studio project templates and using those, etc. But I don't want to create modules right now, I just want to move an existing one from one DNN site to another. Do I really need to get into the whole module development ecosystem just to do that task?

Thanks for your insights!

1 个答案:

答案 0 :(得分:1)

有几种选择。

  1. 使用我的模板在visual studio中进行(更长时间,更多涉及,但如果你想在未来进行更改,则更好)
  2. 将desktopmodules / MODULENAME文件夹中的所有文件从一个安装复制到另一个安装。复制BIN文件夹中的DLL。转到所需安装的Host / Extensions页面,单击Create New Module按钮,在FROM选项中,从MANIFEST中选择并找到.DNN文件。
  3. 您可以使用现有模块转到安装的Host / Extensions页面,单击要移动的模块旁边的Edit pencil。选择"创建包"选项,您将完成为模块创建ZIP文件的过程。
  4. 我更喜欢选项#1,顺序为2和3。 #1因为这是长期做事的更好方式。