五、扩展Orchard(七) Packaging and sharing a module
开发一个Orchard模块后,你可能想分享给其它人,Orhcard提供了模块打包的功能。需要先启用这个功能,
命令行提供了打包和安装包的命令.(.nupkg)
package create <extensionName> <path> Create a package for the extension <extensionName> (an extension being a module or a theme). The package will be output at the <path> specified. The default filename is Orchard.[Module|Theme].<extensionName>.<extensionVersion>.nupkg. For example, "package create SampleModule c:\temp" will create the package "c:\temp\Orchard.Module.SampleModule.1.0.0.nupkg". package install <packageId> <location> /Version:<version> Install a module or a theme from a package file. package uninstall <packageId> Uninstall a module or a theme. The <packageId> should take the format Orchard.[Module|Theme].<extensionName>. For example, "package uninstall Orchard.Module.SampleModule" will uninstall the Module under the "~/Modules/SampleModule" directory and "package uninstall Orchard.Theme.SampleTheme" will uninstall the Theme under the "~/Themes/SampleTheme" directory. user create /UserName:<username> /Password:<password> /Email:<email> Creates a new User
Orchard使用NuGet打包格式创建模块包(基本的.zip加上额外的包的元信息)。