0

我创建了一个在 .NET Framework 4.7.2 上运行的新 C# WinForms 项目,我想从 XML 生成的文件创建一个 pdf 文档。我已成功安装 VS docfx.console 包,如此处第 3 项中所述。当我构建我的解决方案时,它会创建_site文件夹index.html, toc.html, ImageArt.html, ImageArt.Form1.htmlImageArt我的项目名称空间在哪里)。但是我在创建的文档(甚至我的 Main 函数)中看不到任何其他类的函数(我使用 XML 注释记录了这些函数)。知道出了什么问题,或者如何将其他类/函数添加到导出的文档中?

编辑: XML 文件通常在 bin/Debug/ 文件夹下生成,如下所示:

<?xml version="1.0"?>

-<doc>


-<assembly>

<name>ImageArt</name>

</assembly>


-<members>


-<member name="F:ImageArt.Form1.components">

<summary>Required designer variable. </summary>

</member>


-<member name="M:ImageArt.Form1.Dispose(System.Boolean)">

<summary>Clean up any resources being used. </summary>

<param name="disposing">true if managed resources should be disposed; otherwise, false.</param>

</member>


-<member name="M:ImageArt.Form1.InitializeComponent">

<summary>Required method for Designer support - do not modifythe contents of this method with the code editor. </summary>

</member>


-<member name="M:ImageArt.Program.Main">

<summary>The main entry point for the application. </summary>

</member>


-<member name="T:ImageArt.NewClass">

<summary>Summary for newClass </summary>

</member>


-<member name="T:ImageArt.Properties.Resources">

<summary>A strongly-typed resource class, for looking up localized strings, etc. </summary>

</member>


-<member name="P:ImageArt.Properties.Resources.ResourceManager">

<summary>Returns the cached ResourceManager instance used by this class. </summary>

</member>


-<member name="P:ImageArt.Properties.Resources.Culture">

<summary>Overrides the current thread's CurrentUICulture property for allresource lookups using this strongly typed resource class. </summary>

</member>

</members>

</doc>

如您所见,它包含Main方法和NewClass类的成员项,但在生成的 HTML 文档中缺少它们。

4

0 回答 0