天天看點

如何在DNN 5.0 下打包子產品

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

繼續閱讀