是否可以从命令行或 Web 上下文之外构建站点核心数据包?即使用 nant [英] Is it possible to build a sitecore data package from command line, or outside of a web context? i.e. using nant

查看:11
本文介绍了是否可以从命令行或 Web 上下文之外构建站点核心数据包?即使用 nant的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Sitecore 包向导可用于构建包含本地 Sitecore 实例的数据和文件的包.

The Sitecore package wizard can be used to build a package containing data and files for the local Sitecore instance.

是否可以从命令行或在网站上下文之外构建 Sitecore 包(仅项目,不需要文件)?这个想法是使用 Nant 创建一个 Sitecore 数据包.我知道 Hedgehog TDS,但这个问题是针对现有的 Sitecore api 可以做什么.

Is it possible to build a Sitecore package (items only, files are not required) from the command line, or otherwise outside the context of a website? The idea is to use Nant to create a Sitecore data package. I'm aware of Hedgehog TDS, but this question is aimed at what can be done with the existing Sitecore api.

推荐答案

你应该看看 Sitecore.Kernel 中的 Sitecore.Install.PackageGenerator 类,看看你如何去创建传统的 Sitecore 软件包.

You should take a look at the Sitecore.Install.PackageGenerator class in the Sitecore.Kernel to see how you may go about creating traditional Sitecore packages.

但是,您希望在网站上下文之外执行此操作.如果您无法访问包含物品的 Sitecore 网站,您打算如何将物品放入包裹中?在您尝试在 CI 服务器上创建包之前,我认为您需要将 Sitecore 项目放入源代码管理中,以便您可以使用它们.

However, you are looking to do this outside of a website context. How do you plan on getting items into the package if you don't have access to the Sitecore web site in which they exist? Before you try to create a package on your CI server I would think you would need to get the Sitecore items into source control so that you can work with them.

我认为你有两个真正的选择.

I think you have two real options here.

  1. 推出您自己的解决方案,利用序列化 API,将 Sitecore 项目纳入源代码控制并在环境之间移动
  2. Hedgehog Development 的 Sitecore 团队开发

有关 Sitecore 序列化的更多信息,请查看 Sitecore 序列化指南.具体来说,请查看 Sitecore 设想您如何使用带有源代码控制系统的 Sitecore 序列化"

For more information on Sitecore serialization please check out the Sitecore Serialization Guide. Specifically, check out how Sitecore envisions you use "Sitecore Serialization with a Source Control System"

另外,为其他围绕序列化推出自己的解决方案的人做一些挖掘工作.例如,http://mcore.wordpress.com/2009/03/17/sitecore-serialization-for-version-control/

Also, do some digging around for others who have rolled their own solution around serialization. For instance, http://mcore.wordpress.com/2009/03/17/sitecore-serialization-for-version-control/

这篇关于是否可以从命令行或 Web 上下文之外构建站点核心数据包?即使用 nant的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆