详细的中文翻译请参考 http://www.cnblogs.com/windzhao/p/4278357.html
1.Orchard创建模块有两种方式
使用命令行创建,需要注意,如果要用命令,先到管理后台 启用 Code Generation,只有启用了代码生成,才能在cmd窗口中输入的命令有效
如:codegen theme MyTheme /BasedOn:TheThemeMachine /CreateProject:true /IncludeInSolution:true
codegen module Mycompany.HelloWorld
Orchard 是首屈一指的免费开源建站平台,内置的工作流、定时任务、多级缓存、多租户、多用户角色权 限 等功能使其既可以用于创作简单的个人博客,也适合开发新闻门户等大型高流量网站。codegen controller <module-name> <controller-name>
创建一个 controller 类codegen datamigration <feature-name>
创建一个数据文件清单codegen module <module-name> [/IncludeInSolution:true|false]
创建一个模块
codegen theme <theme-name> [/CreateProject:true|false][/IncludeInSolution:true|false][/BasedOn:<theme-name>]
创建一个皮肤
或者直接创建项目模块,不过项目模块选择MVC空模板,位置一定在src/Orchard.web/module下这样在后台配置就能启用该模块,项目位置不能错
创建模块的参考文档 http://www.cnblogs.com/esshs/archive/2011/06/13/2079937.html
2.启用模块