nuget安装Swashbuckle包
修改SwaggerConfig文件
//c.IncludeXmlComments(GetXmlCommentsPath());
//设置接口描述xml路径地址
c.IncludeXmlComments(string.Format("{0}/bin/SwaggerDemo.XML", System.AppDomain.CurrentDomain.BaseDirectory));
原文:http://www.cnblogs.com/shiningrise/p/7633654.html