none
Pro grammatically load XML documentation in Output Path RRS feed

  • Question

  • I am using ASP.NET Core project. On Project properties -> Output -> on checking this Checkbox (XML Documentation File) - it generates a xml document with xml comments from entire library. 

    Can this behavior be pro-grammatically achieved so that user is not bothered to click this checkbox in visual studio ?  

    As soon as my code runs, it automatically creates xml file and fills it with xml comments from the entire library. 

     
    Thursday, January 10, 2019 3:42 PM

All replies

  • I'd just modify the CSharp project template to include this line:


       
    <GenerateDocumentationFile>true</GenerateDocumentationFile>


    In TemplateData section so new projects will have this option automatically enabled by default.


    EDIT: Seems you can also create a Directory.Build.props file to include this option as described here to make it have effect on all existing projects in a solution.
    • Edited by cheong00 Friday, January 11, 2019 1:53 AM
    Friday, January 11, 2019 1:28 AM