简体   繁体   English

DocFx 不生成文档

[英]DocFx does not generate documentation

I'm trying to use DocFx to generate API documentation.我正在尝试使用 DocFx 生成 API 文档。 I was under the impression that if I added docfx.console as a nuget package to my .NET project and built it, the documentation would be generated automatically.我的印象是,如果我将docfx.console作为 nuget package 添加到我的 .NET 项目并构建它,文档将自动生成。 But that does not seem to be happening.但这似乎并没有发生。 It does generate some html files inside the _sites folder, but it doesn't convert my XML comments to a friendly doc format.它确实会在_sites文件夹中生成一些 html 文件,但不会将我的 XML 评论转换为友好的文档格式。 What am I doing wrong?我究竟做错了什么? My project is ASP.NET MVC with C# (.NET 4.6.1).我的项目是 ASP.NET MVC 和 C# (.NET 4.6.1)。

I have the same problem.我也有同样的问题。 I solved by using command docfx build [your project folder] then docfx serve [your project folder again] on Developer Command.我通过在 Developer Command 上使用命令docfx build [your project folder]然后docfx serve [your project folder again]来解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM