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

查看:312
本文介绍了是否可以从命令行或在Web上下文之外构建sitecore数据包?即使用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.Install.PackageGenerator 类在Sitecore.Kernel中查看如何创建传统的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.

我认为


  1. 使用自己的解决方案,利用序列化API,将Sitecore项目转换为源代码控制,并在环境之间移动

  2. Hedgehog Development的 Sitecore团队发展

  1. Roll your own solution, leveraging serialization APIs, for getting Sitecore items into source control and moving between environments
  2. Hedgehog Development's Team Development for 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上下文之外构建sitecore数据包?即使用nant的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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