我有一个非常基本的 ccnet.config 文件,在其中我尝试使用 include.projects 标签来包含一个非常基本的项目。由于某种原因,当我使用此标签时,CCNet Server 将无法启动,并且我在 Windows EventLog 中收到以下错误:
ThoughtWorks.CruiseControl.Core.Config.ConfigurationException: Unable to instantiate CruiseControl projects from configuration document. Configuration document is likely missing Xml nodes required for properly populating CruiseControl configuration. No loaded type is marked up with a ReflectorType attribute that matches the Xml node (include.projects).
这是我的 ccnet.config:
<cruisecontrol>
<include.projects file="MyTestProject.config" />
</cruisecontrol>
任何建议表示赞赏!
谢谢
最佳答案
如 documentation 中详述,正确的语法是:
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<cb:include href="MyTestProject.config"/>
</cruisecontrol>
关于.net - Cruise Control include.projects 无法识别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6738099/