Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

XML Documentation File with Visual Studio

Discussion in 'Scripting' started by rubcc95, Oct 28, 2020.

  1. rubcc95

    rubcc95

    Joined:
    Dec 27, 2019
    Posts:
    222
    I've my project with all the xml comments above my members.

    But when I try to modify Assembly-CSharp.csproj in order to get the xml file with this line.

    <GenerateDocumentationFile>Assets/Documentation/Documentation.xml</GenerateDocumentationFile>


    Only an empty Documentation folder is created... and Assembly-CSharp.csproj is updated anytime and my line deleted.

    How can i get an XML file with my Documentation? So easy with a C# console project, but here I'm not able to do it...

    Thank you so much.
     
    idorich and EZaca like this.
  2. orionsyndrome

    orionsyndrome

    Joined:
    May 4, 2014
    Posts:
    3,070
    I'm not sure what is the correct answer, but Unity does rewrite the project files IIRC