Asp.Net Api+Swagger控制器注释

Swagger注释不显示,只需要进入Startup.cs

找到:

c.IncludeXmlComments(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "WebApilication.xml"));

更改为:

c.IncludeXmlComments(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "WebApilication.xml"), true);

  

posted @ 2018-11-15 17:28  Armys  阅读(2664)  评论(3编辑  收藏  举报