1、选择webapi项目属性 -> 生成 -> 输出 -> XML文档文件 打勾选中;

2、在webapi项目 -> Areas -> HelpPage -> App_Start -> HelpPageConfig.cs 文件中,方法Register

去掉注释代码如下:

config.SetDocumentationProvider(new XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/bin/WebAPI.XML")));


.net webapi 文档备注

相关文章:

  • 2022-12-23
  • 2021-06-11
  • 2021-06-21
  • 2021-08-18
  • 2022-12-23
  • 2021-04-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
相关资源
相似解决方案