Netcore Swagger XML Publishing loss issue

Source: Internet
Author: User

1, Netcore2.1.2,swagger.aspnetcore 1.1.0 version. Swagger interface document XML is missing when publishing the Netcore project, and is always published. Later access to information, as if it is a bug netcore, the default filter out some XML files. If you need to publish, you need to change the csproj file or the Project.json file.

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

2, modify the project properties, remember the XML document without the path name, directly is the file name. At this point the XML file is generated under the project root directory, not the bin\release\netcoreapp2.0 file, which is very bizarre. The feeling is Netcore bug ah. He's not available.

3. Modify the Csproj file

4. When you publish your project, you can see

Netcore Swagger XML Publishing loss issue

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.