如何从 C# 代码创建 .chm 文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/705836/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I create .chm files from C# code?
提问by
采纳答案by Gavin Miller
NDoc is a dead project, it's successor is Sandcastle& Sandcastle Helpfile Builder.
NDoc 是一个死项目,它的继任者是Sandcastle和Sandcastle Helpfile Builder。
I've used both of the Sandcastle items. They're easy to setup, have decent documentation and chm file generation is native to the application. If you can switch, it would be a much better choice than doxygen.
我已经使用了 Sandcastle 的两个项目。它们很容易设置,有不错的文档,并且 chm 文件生成是应用程序原生的。如果可以切换,那将是比 doxygen 更好的选择。
Otherwise check out this link for HTML to chm info: http://younsi.blogspot.com/2007/04/doxygen-to-html-to-chm.html
否则,请查看此链接以获取 HTML 到 chm 信息:http: //younsi.blogspot.com/2007/04/doxygen-to-html-to-chm.html
回答by Soo Wei Tan
All you need besides Doxygen is the HTML Help compiler, which you can find on the Microsoft website.
除了 Doxygen 之外,您只需要 HTML 帮助编译器,您可以在 Microsoft 网站上找到它。
You can then use Doxywizard to point Doxygen to the compiler executable (hhc.exe). Check the "GENERATE_HTMLHELP" box, choose a location to place the .chm file and you're good to go.
然后您可以使用 Doxywizard 将 Doxygen 指向编译器可执行文件 (hhc.exe)。选中“GENERATE_HTMLHELP”框,选择一个位置来放置 .chm 文件,您就可以开始了。
回答by Marco van de Voort
If you don't like having an external help compiler (for deployment you need to officially deploy the entire SDK afaik), there is also libchm, which is a Open Source C library that can write chms.
如果你不喜欢有外部帮助编译器(部署需要正式部署整个SDK afaik),还有libchm,这是一个可以编写chms的开源C库。
Delphi users might want to look at Free Pascal's paralel implementation of libchm, since a pascal solution makes it easier embeddable.
Delphi 用户可能希望查看 Free Pascal 的 libchm 并行实现,因为 pascal 解决方案使其更易于嵌入。
回答by M4N
The original NDoc project is dead, but there is a new project called NDoc3.
原来的 NDoc 项目已经死了,但是有一个名为NDoc3的新项目。
NDoc3 supports .NET 2.0 - 3.5. It is currently available as a beta version and worked great for me. I'm not sure if the project is still active - the last beta was release in april 2009.
NDoc3 支持 .NET 2.0 - 3.5。它目前作为测试版提供,对我来说效果很好。我不确定该项目是否仍然有效 - 最后一个测试版是在 2009 年 4 月发布的。
回答by M4N
You can try KEL CHM Creatorif that suit you.
如果适合您,您可以尝试KEL CHM Creator。