如何使用 ILMerge 将 XML 文档文件与 DLL 合并?
我知道我可以将 PDB 与 DLL 文件合并,但我正在尝试对 XML 文档文件执行相同的操作。
这应该是可能的,因为您没有带有 .NET 程序集的 .xml 文件,但 IDE 中有文档。
如何做到这一点?
I know I can merge PDB with a DLL file but I'm trying to do the same with an XML documentation file.
It should be possible since you don't have .xml files with .NET assemblies and yet you have documentation in the IDE.
How to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ILMerge 还提供一个命令行选项来合并 XML 文档
/xmldocs
。There's a command-line option for ILMerge to also merge the XML documentation
/xmldocs
.ILMerge 仅用于将 DLL 和 EXE 分别合并为一个大 DLL 和 EXE。 XML 文档由 C# 编译器生成,ILMerge 与之无关,因为它处理这些文件的二进制内容。如果您将 ILMerge 视为指令语言合并 (ILMerge),这就是它的全部功能,不涉及 XML 文档。 Sandcastle 就是一个这样的文档生成器,通过告诉 Sandcastle 您想要构建所有 xml 注释的 Html 帮助或 CHM,它会为您做到这一点。
希望这能澄清对 ILMerge 的理解。
ILMerge is only for merging DLLs and EXE's into one big DLL and EXE's respectively. The XML documentation is generated by the C# Compiler and ILMerge has nothing to do with it as it deals with the binary content of these files. If you were to think of ILMerge as Instruction Language Merge (ILMerge) that is all it does, no dealings with XML documentation. Sandcastle is a such documentation generator, by telling Sandcastle you want to build a Html Help or CHM of all xml comments, it will do that for you.
Hope this clarifies the understanding of ILMerge.