SandCastle 上的 MRefBuilder 无效字符异常

发布于 2024-08-27 21:15:42 字数 1714 浏览 7 评论 0原文

我正在尝试使用 Sandcastle 帮助文件生成器为我的程序集生成帮助文件。 当我运行构建时,出现以下错误:

 MrefBuilder (v2.4.10520.1)
  Copyright c Microsoft 2006
  Info: Loaded 1 assemblies for reflection and 15 dependency assemblies.

  Unhandled Exception: System.ArgumentException: '', hexadecimal value 0x02, is an invalid character.
     at System.Xml.XmlEncodedRawTextWriter.InvalidXmlChar(Int32 ch, Char* pDst, Boolean entitize)
     at System.Xml.XmlEncodedRawTextWriter.WriteAttributeTextBlock(Char* pSrc, Char* pSrcEnd)
     at System.Xml.XmlEncodedRawTextWriter.WriteString(String text)
     at System.Xml.XmlEncodedRawTextWriterIndent.WriteString(String text)
     at System.Xml.XmlWellFormedWriter.WriteString(String text)
     at System.Xml.XmlWriter.WriteAttributeString(String localName, String value)
     at Microsoft.Ddue.Tools.ManagedReflectionWriter.WriteTypeElements(TypeNode type)
     at Microsoft.Ddue.Tools.ManagedReflectionWriter.WriteType(TypeNode type)
     at Microsoft.Ddue.Tools.ManagedReflectionWriter.VisitType(TypeNode type)
     at Microsoft.Ddue.Tools.Reflection.ApiVisitor.VisitTypes(TypeNodeList types)
     at Microsoft.Ddue.Tools.Reflection.ApiVisitor.VisitNamespace(Namespace space)
     at Microsoft.Ddue.Tools.ManagedReflectionWriter.VisitNamespace(Namespace space)
     at Microsoft.Ddue.Tools.Reflection.ApiVisitor.VisitNamespaces(NamespaceList spaces)
     at Microsoft.Ddue.Tools.ManagedReflectionWriter.VisitNamespaces(NamespaceList spaces)
     at Microsoft.Ddue.Tools.Reflection.ApiVisitor.VisitApis()
     at Microsoft.Ddue.Tools.MRefBuilder.Main(String[] args)

从命令行运行时,我也会收到此错误。

我使用十六进制编辑器检查了VS输出的​​Documentation.xml,文件中没有字符0x02。

有人有任何线索或建议吗?

谢谢

I'm trying to use the Sandcastle Help File Builder to generate a help file for my assembly.
When I run the build I get the following error:

 MrefBuilder (v2.4.10520.1)
  Copyright c Microsoft 2006
  Info: Loaded 1 assemblies for reflection and 15 dependency assemblies.

  Unhandled Exception: System.ArgumentException: '', hexadecimal value 0x02, is an invalid character.
     at System.Xml.XmlEncodedRawTextWriter.InvalidXmlChar(Int32 ch, Char* pDst, Boolean entitize)
     at System.Xml.XmlEncodedRawTextWriter.WriteAttributeTextBlock(Char* pSrc, Char* pSrcEnd)
     at System.Xml.XmlEncodedRawTextWriter.WriteString(String text)
     at System.Xml.XmlEncodedRawTextWriterIndent.WriteString(String text)
     at System.Xml.XmlWellFormedWriter.WriteString(String text)
     at System.Xml.XmlWriter.WriteAttributeString(String localName, String value)
     at Microsoft.Ddue.Tools.ManagedReflectionWriter.WriteTypeElements(TypeNode type)
     at Microsoft.Ddue.Tools.ManagedReflectionWriter.WriteType(TypeNode type)
     at Microsoft.Ddue.Tools.ManagedReflectionWriter.VisitType(TypeNode type)
     at Microsoft.Ddue.Tools.Reflection.ApiVisitor.VisitTypes(TypeNodeList types)
     at Microsoft.Ddue.Tools.Reflection.ApiVisitor.VisitNamespace(Namespace space)
     at Microsoft.Ddue.Tools.ManagedReflectionWriter.VisitNamespace(Namespace space)
     at Microsoft.Ddue.Tools.Reflection.ApiVisitor.VisitNamespaces(NamespaceList spaces)
     at Microsoft.Ddue.Tools.ManagedReflectionWriter.VisitNamespaces(NamespaceList spaces)
     at Microsoft.Ddue.Tools.Reflection.ApiVisitor.VisitApis()
     at Microsoft.Ddue.Tools.MRefBuilder.Main(String[] args)

I also get this error when running from the command line.

I've used a hex editor to examine the Documentation.xml that VS outputs, and there is not a character 0x02 in the file.

Does anyone have any clue or advice?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甜妞爱困 2024-09-03 21:15:42

它似乎与我必须用来连接 SAP 的 DLL 相关。 ERP 连接。一旦我消除了该名称空间,一切就顺利了。

It appears to be related to a DLL that I had to use to connect to SAP. ERP Connect. Once I eliminated that namespace, everything went well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文