1、netcore2.1.2,swagger.aspnetcore 1.1.0版本。发布netcore项目时swagger的接口文档xml 遗漏,始终发布不上去。后来查阅资料,讲的好像是netcore的一个bug,默认过滤掉一些xml文件。如果需要发布,则需要改动csproj文件或project.json文件。

https://stackoverflow.com/questions/42385162/xml-documentation-file-is-not-included-in-publish-folder

2、修改csproj文件

<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2018-03-03
  • 2021-08-10
  • 2021-08-24
猜你喜欢
  • 2022-02-21
  • 2021-09-03
  • 2021-06-28
  • 2022-01-02
  • 2022-02-02
  • 2021-05-22
  • 2021-07-10
相关资源
相似解决方案