Orchard 模块开发学习笔记 (1)

创建模块

 

首先,打开Bin目录下的Orchard.exe

等到出现orchard>后,

看看命令列表中是否存在 codegen module

 

如果不存在,则需要先执行:feature enable  Orchard.Codegeneration

然后执行codegen module [要新建的模块名] 比如Codegen module News 新建News模块

Orchard会在Orchard.Web/Modules下新建工程News, 启动VS源码,把它加载到Modules 解决方案文件夹。

运行就可以看到模块列表中包含该模块了

 

posted @ 2016-12-15 10:04  Blue Bird  阅读(218)  评论(0编辑  收藏  举报