C# 如何使用docfx生成包含引用的文档

C# 如何使用docfx生成包含引用的文档,c#,asp.net,documentation,docfx,C#,Asp.net,Documentation,Docfx,我正在尝试为.net项目(多层)生成文档。但我无法在使用docfx生成的文档中看到引用类信息 例如: 使用Microsoft.AspNetCore.Mvc; 使用服务层; 命名空间testApplication.Controller { /// ///家庭控制器 /// 公共类HomeController:控制器 { /// ///指数法 /// /// 公共IActionResult索引() { Class1 cls1=新的Class1(); //调用testmethod。 字符串a

我正在尝试为.net项目(多层)生成文档。但我无法在使用docfx生成的文档中看到引用类信息

例如:

使用Microsoft.AspNetCore.Mvc;
使用服务层;
命名空间testApplication.Controller
{
/// 
///家庭控制器
/// 
公共类HomeController:控制器
{
/// 
///指数法
/// 
/// 
公共IActionResult索引()
{
Class1 cls1=新的Class1();
//调用testmethod。
字符串abc=cls1.testmethod(“测试”);
返回视图();
}
}
}
以上代码引用的是ServiceLayer。使用它,我调用testmethod。但是文档没有显示,这个类正在使用ServiceLayer引用

是否有任何方法可以在文档中的“/”中显示注释查看以下链接:

为.net定义的元数据包括以下声明:

名称空间

类型,包括类、结构、接口、枚举、委托

类型成员,包括字段、属性、方法、事件

所有这些都用
//
XML注释进行注释。由于这是一个api描述符,因此只包含那些api描述符是有意义的。请检查以下链接:

为.net定义的元数据包括以下声明:

名称空间

类型,包括类、结构、接口、枚举、委托

类型成员,包括字段、属性、方法、事件

所有这些都用
//
XML注释进行注释。因为这是一个api描述符,所以只包含这些描述符是有意义的

using Microsoft.AspNetCore.Mvc;
using ServiceLayer;

namespace testApplication.Controllers
{
    /// <summary>
    /// Home COntroller
    /// </summary>
    public class HomeController : Controller
    {
        /// <summary>
        /// Index Method
        /// </summary>
        /// <returns></returns>
        public IActionResult Index()
        {
            Class1 cls1 = new Class1();
            //calling testmethod.
            string abc = cls1.testmethod("testing");
            return View();
        }
    }
}