runxinzhi.com
首页
百度搜索
[DNN模块开发]如何写dnn文件
在所有DNN模块的安装包中,都有一个*.DNN文件。这个文件就是DNN模块的安装文件清单。在安装模块时DNN应用程序读取该文件,按照文件清单中的内容安装相关文件和数据库脚本。
DNN文件是一个XML文件结构大致如下:
<!--
dotnetnuke节点,说明改文件时模块安装清单,使用与3.0.X版的DNN程序
-->
<
dotnetnuke
version
="3.0"
type
="Module"
>
<
folders
>
<
folder
>
<!--
模块名称
-->
<
name
>
CLinks
</
name
>
<!--
模块名称(模块的友好名称)
-->
<
friendlyname
>
CLinks
</
friendlyname
>
<!--
模块功能描述
-->
<
description
>
分类链接模块
</
description
>
<!--
模块版本
-->
<
version
>
01.00.00
</
version
>
<!--
业务逻辑类
-->
<
businesscontrollerclass
>
DNNChina.Modules.CLinks.CLinksController, DNNChina.Modules.CLinks
</
businesscontrollerclass
>
<
modules
>
<
module
>
<
friendlyname
>
CLinks
</
friendlyname
>
<!--
模块所包含的控件
-->
<
controls
>
<!--
显示控件
-->
<
control
>
<
src
>
DesktopModules/CLinks/CLinks.ascx
</
src
>
<
type
>
View
</
type
>
</
control
>
<!--
编辑控件
-->
<
control
>
<
key
>
Edit
</
key
>
<
title
>
Edit CLinks
</
title
>
<
src
>
DesktopModules/CLinks/EditCLinks.ascx
</
src
>
<
type
>
Edit
</
type
>
</
control
>
<!--
设置控件
-->
<
control
>
<
key
>
Settings
</
key
>
<
title
>
Settings CLinks
</
title
>
<
src
>
DesktopModules/CLinks/Settings.ascx
</
src
>
<
type
>
Edit
</
type
>
</
control
>
</
controls
>
</
module
>
</
modules
>
<!--
需要安装的文件清单
-->
<
files
>
<!--
程序集文件
-->
<
file
>
<
name
>
DNNChina.Modules.CLinks.dll
</
name
>
</
file
>
<
file
>
<
name
>
DNNChina.Modules.CLinks.SqlDataProvider.dll
</
name
>
</
file
>
<!--
用户控件文件
-->
<
file
>
<
name
>
CLinks.ascx
</
name
>
</
file
>
<
file
>
<
name
>
EditCLinks.ascx
</
name
>
</
file
>
<
file
>
<
name
>
Settings.ascx
</
name
>
</
file
>
<!--
语言包文件
-->
<
file
>
<
path
>
App_LocalResources
</
path
>
<
name
>
CLinks.ascx.resx
</
name
>
</
file
>
<
file
>
<
path
>
App_LocalResources
</
path
>
<
name
>
CLinks.ascx.zh-CN.resx
</
name
>
</
file
>
<
file
>
<
path
>
App_LocalResources
</
path
>
<
name
>
EditCLinks.ascx.resx
</
name
>
</
file
>
<
file
>
<
path
>
App_LocalResources
</
path
>
<
name
>
EditCLinks.ascx.zh-CN.resx
</
name
>
</
file
>
<
file
>
<
path
>
App_LocalResources
</
path
>
<
name
>
Settings.ascx.resx
</
name
>
</
file
>
<
file
>
<
path
>
App_LocalResources
</
path
>
<
name
>
Settings.ascx.zh-CN.resx
</
name
>
</
file
>
<!--
数据库安装脚本
-->
<
file
>
<
name
>
01.00.00.SqlDataProvider
</
name
>
</
file
>
<!--
数据库卸载脚本
-->
<
file
>
<
name
>
Uninstall.SqlDataProvider
</
name
>
</
file
>
</
files
>
</
folder
>
</
folders
>
</
dotnetnuke
>
大家在开发模块时,可以照此结构编写自己需要的DNN安装文件。
相关阅读:
算法------------数组----------------两个数组的交集 II
算法-----------数组------------只出现一次的数字
算法------数组---------存在重复元素
androd hook acitivity 启动流程,替换启动的activity(Android Instrumentation)
算法--------旋转数组
Android 项目,没有可运行的Module项
Java多线程系列目录(共43篇)
python3:tuple元组
python 3 :list
python3 基本数据类型
原文地址:https://www.cnblogs.com/zhuor/p/282912.html
最新文章
分析Android :java.lang.UnsatisfiedLinkError: dlopen failed * is 32-bit instead of 64-bit
努比亚压力键不显示菜单问题
Android stdio build.gradle buildscript 里面的repositories 和allprojects里面 repositories 的区别
算法----------加一
Android AOSP 编译sdk
Unknown host 'services.gradle.org' 解决方法
Please ensure JDK installation is valid and compatible with the current OS
Android AOSP 单独编译某一模块
Ubentu编译Android源码(AOSP)
Ubuntu 安装 搜狗输入法
热门文章
Ubentu下命令行安装chrome浏览器
UItraIso 制作ubentu 系统失败
Android 打印log 在logcat 看不到
Java >>>运算符 和 >> 运算符
算法-------位1的个数
java 编码二进制写法、十六进制用源代码表示
Java 数字用二进制表示,以及原码,反码,补码、负数的二进制表示
productFlavors 差异打包问题
android 8.0 Account行为变更 账号系统
Android Parcelable 源码解析
Copyright © 2020-2023
润新知