VS2017 + Project .net Core XML documentation file


  • Dear Support,

    when we create a project in .net core API with the buil option "XML documentation file" checked (for swagger for example), and we publish to Azure App or in a local publishment, the xml file isn't copied. The xml is in the bin folder but not present in the wwwroot folder.

    I tried the same option in visual studio 2015 --> It's working. 

    Then with VS2017 we must copy the xml manually to the wwwroot folder.

    Do you have any ideas to resolve the issue?

    Thanks in advance


    Wednesday, April 19, 2017 1:28 PM

All replies

  • Hi Xavier,

    Welcome to MSDN forum.

    If you want the xml file present in the wwwroot folder in Visual Studio 2017, you can change the path of the XML documentation file after check the option:

    After build or publish, the xml file is in the wwwroot folder.

    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Thursday, April 20, 2017 7:32 AM
  • Sorry for my late answer, but if the file is in the folder wwwroot, the path is strange wwwroot\wwwroot\xxxxIt's seems that the publication use a child path


    Friday, June 23, 2017 9:43 PM