Sitecore TDS包构建突然失败

时间:2015-09-29 06:56:42

标签: sitecore tds

我有一个Web项目和两个TDS项目的解决方案。突然间,从今天开始,TDS包构建失败,尽管我没有改变项目中的任何内容。这是输出消息:

1>------ Rebuild All started: Project: SAP HANA, Configuration: KON Any CPU ------
1>  SAP HANA -> C:\Solutions\BTC Microsites\dev\SAP HANA\SAP HANA\bin\SAP HANA.dll
2>------ Rebuild All started: Project: TDS, Configuration: Debug Any CPU ------
2>              TDSVersion: 5.1.0.17
2>              FrameworkVersion: 4
2>              Visual Studio Version: 12.0
2>              \Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.Tasks.dll
2>                                      Using TDS project config setting 'Debug' to perform config transforms
2>                                      Using TDS project config setting 'Debug' to perform xml transforms
2>                      Looking for: C:\Solutions\BTC Microsites\dev\SAP HANA\TDS\bin\Debug\\**\*.*
2>                      Building package with files in folder .\bin\Debug\
2>C:\Program Files (x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0\HedgehogDevelopment.SitecoreProject.targets(169,5): error : The package builder failed. Please see the build output log for more details.
2>Done building project "TDS.scproj" -- FAILED.
2>
2>Build FAILED.
3>------ Rebuild All started: Project: TDS_Content, Configuration: Debug Any CPU ------
3>              TDSVersion: 5.1.0.17
3>              FrameworkVersion: 4
3>              Visual Studio Version: 12.0
3>              \Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.Tasks.dll
3>                                      Using TDS project config setting 'Debug' to perform config transforms
3>                                      Using TDS project config setting 'Debug' to perform xml transforms
3>                      Looking for: C:\Solutions\BTC Microsites\dev\SAP HANA\TDS_Content\bin\Debug\\**\*.*
========== Rebuild All: 2 succeeded, 1 failed, 0 skipped ==========

当我点击错误消息时,这就是我指出的地方:

<GeneratePackage
      ProjectFilePath="$(MSBuildProjectFullPath)"
      PackageOutputDirectory="$(_PackageOutputDirectory)"
      ConfigurationToBuild="$(Configuration)"
      CompiledFiles="$(_OutputPath)"
      PackageName="$(PackageName)"
      Author="$(PackageAuthor)"
      Publisher="$(PackagePublisher)"
      Version="$(PackageVersion)"
      SolutionDir="$(SolutionDir)"
      AddDateTimeToPackageName="$(AddDateTimeToPackageName)"
      SeperateFilesAndItems="$(SeperateFilesAndItems)"
      PackageDateTimeFormat="$(PackageDateTimeFormat)"
      RecursiveDeployAction="$(RecursiveDeployAction)"
      SitecoreAssemblyPath="$(SitecoreAssemblyPath)"
      PackageReadme="$(PackageReadme)"
      ExcludeCode="$(PackageExcludeCode)"
      Verbose="true"/>

这个错误并不多见。有没有人碰巧突然知道什么是错的?

编辑: 详细错误消息:

Building .\bin\Debug\..\Package_Debug\TDS_SAPHANA_Package_20150929_0938.update
2>                      Inner Exception '', hexidezimaler Wert 0x0B, ist ein ungltiges Zeichen.(System.ArgumentException):
2>                         bei System.Xml.XmlUtf8RawTextWriter.InvalidXmlChar(Int32 ch, Byte* pDst, Boolean entitize)
2>                         bei System.Xml.XmlUtf8RawTextWriter.WriteElementTextBlock(Char* pSrc, Char* pSrcEnd)
2>                         bei System.Xml.XmlUtf8RawTextWriter.WriteString(String text)
2>                         bei System.Xml.XmlUtf8RawTextWriterIndent.WriteString(String text)
2>                         bei System.Xml.XmlRawWriter.WriteValue(String value)
2>                         bei System.Xml.XmlWellFormedWriter.WriteValue(String value)
2>                         bei Sitecore.Update.Utils.XmlHelper.SerealizeField(SyncField syncField, XmlWriter writer, SerializationContext context)
2>                         bei Sitecore.Update.Utils.XmlHelper.SerializeVersion(SyncVersion syncVersion, XmlWriter writer, SerializationContext context)
2>                         bei Sitecore.Update.Utils.XmlHelper.SerializeItem(SyncItem syncItem, XmlWriter writer, SerializationContext context)
2>                         bei Sitecore.Update.Commands.AddItemCommand.SerializeCommand(XmlWriter writer, SerializationContext context)
2>                         bei Sitecore.Update.Commands.BaseItemCommand.Serialize(XmlWriter writer, SerializationContext context)
2>                         bei Sitecore.Update.Commands.SerializationCommandFactory.SerializeCommand(ICommand command, XmlWriter writer, SerializationContext context)
2>                         bei Sitecore.Update.Installer.CommandToEntryConverter.PlainConvert(ICommand entry)
2>                         bei Sitecore.Update.Installer.CommandToEntryConverter.Convert(ICommand entry)
2>                         bei Sitecore.Update.Installer.CommandToEntryConverter.InternalConvert(ICommand entry, IProcessingContext context)
2>                         bei Sitecore.Install.Framework.BaseConverter`1.Convert(T entry, IProcessingContext context)
2>                         bei Sitecore.Install.Framework.BaseSource`1.InternalSink.Put(T entry)
2>                         bei Sitecore.Install.Framework.FilteringSink`1.Put(T entry)
2>                         bei Sitecore.Update.Installer.CommandSource.InternalPopulate(ISink`1 sink)
2>                         bei Sitecore.Install.Framework.BaseSource`1.Populate(ISink`1 sink)
2>                         bei Sitecore.Install.PackageProject.InternalPopulate(ISink`1 sink)
2>                         bei Sitecore.Install.Framework.BaseSource`1.Populate(ISink`1 sink)
2>                         bei Sitecore.Install.Utils.EntrySorter.Populate(ISink`1 sink)
2>                         bei Sitecore.Install.PackageGenerator.GeneratePackage(PackageProject solution, ISink`1 writer)
2>                         bei Sitecore.Update.Engine.PackageGenerator.GeneratePackage(DiffInfo diff, String licenseFile, String outputPath)
2>                      Exception Cannot generate package: '', hexidezimaler Wert 0x0B, ist ein ungltiges Zeichen.(System.Exception):
2>                         bei Sitecore.Update.Engine.PackageGenerator.GeneratePackage(DiffInfo diff, String licenseFile, String outputPath)
2>                         bei HedgehogDevelopment.SitecoreProject.PackageBuilder.PackageBuilder.d(d ?)
2>                         bei HedgehogDevelopment.SitecoreProject.PackageBuilder.y.d(String[] ?)
2>C:\Program Files (x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0\HedgehogDevelopment.SitecoreProject.targets(169,5): error : The package builder failed. Please see the build output log for more details.
2>Done building project "TDS.scproj" -- FAILED.

1 个答案:

答案 0 :(得分:6)

因为看起来异常是由富文本字段中的无效行结束引起的(请查看原始答案的评论部分)。由于Sitecore序列化对行结尾非常严格(请查看this文章以供参考),因此会导致TDS无法生成包。如果删除了无效的行结尾 - 一切都应该运行良好:)