DNN 5.0 的模块注册文件的格式有一些变化,之前在4.x的一些惯用做法会有些问题。

最常见的一个问题是,你会发现为DNN 4.x制作的打包文件中的resource.zip文件在DNN 5.0中安装时不会被自动解压。其实,在DNN 5.0中,在DNN 文件中注册resource.zip文件应该这样写:

    <component type="ResourceFile">
        <resourceFiles> 
             <basePath>DesktopModules\ModuleName</basePath> 
             <resourceFile>
                  <name>Resources.zip</name> 
              </resourceFile>
        </resourceFiles>
    </component>

这样在DNN 5.0中,可以支持多个resource.zip包。

更多的关于新DNN 5.0 打包DNN文件格式的修改信息,可以参考这里:

http://www.erikvanballegoij.com/tabId/36/itemId/24/DotNetNuke-5-Extension-packaging.aspx

和Charles Nurse的:

  1. The New Extension Installer Manifest – Part 1, Introduction
  2. The New Extension Installer Manifest – Part 2, Component Installers
  3. The New Extension Installer Manifest – Part 3, The Cleanup Component

相关文章:

  • 2021-08-29
  • 2022-12-23
  • 2021-09-10
  • 2021-12-01
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
猜你喜欢
  • 2021-09-20
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-07-03
相关资源
相似解决方案