.net SandCastle上的MRefBuilder无效字符异常
我正在尝试使用Sandcastle帮助文件生成器为我的程序集生成帮助文件。 当我运行构建时,出现以下错误:.net SandCastle上的MRefBuilder无效字符异常,.net,sandcastle,.net,Sandcastle,我正在尝试使用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
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
有人有什么线索或建议吗
谢谢它似乎与我连接到SAP时必须使用的DLL有关。ERP连接。一旦我消除了那个名称空间,一切都很顺利。您能详细说明一下如何消除那个名称空间吗?我遇到了同样的问题。我创建了一个名为“NamespaceDoc.cs”的类,我将它放在问题名称空间中,然后在该类上设置[System.Runtime.CompilerServices.CompilerGenerated()]属性。这迫使它忽略此命名空间中的所有类