vs code dotnetcore use swagger to add api docuement summary xml
先在ProjectName.csproj文件里节点PropertyGroup内添加代码:
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);1591</NoWarn>
然后在StartUp.cs文件内方法ConfigureServices的services.AddSwaggerGen内添加代码:
// Set the comments path f
原创
2020-11-26 15:27:12 ·
114 阅读 ·
0 评论