或者也可以输入代码
Install-Package Swashbuckle
c.IncludeXmlComments(GetXmlCommentsPath(thisAssembly.GetName().Name));
增加方法
protected static string GetXmlCommentsPath(string name) { return System.String.Format(@"{0}\bin\{1}.xml",System.AppDomain.CurrentDomain.BaseDirectory, name); }
http://<youhost>/swagger/ui/index
,最终显示效果