VS2010: Autogenerated XML documentation file does not update

后端 未结 3 1840
耶瑟儿~
耶瑟儿~ 2021-02-20 12:06

I have a C# project in vs2010 that generates a XML documentation file, where I have set the output path of the generated file to the project output path.

My problem is t

相关标签:
3条回答
  • 2021-02-20 12:53

    I use VS 2010 and my XML documentation is regenerated correctly on each build.

    Even a simple rebuild will force the file to update. If you modify the class description and rebuild, you should also get XML with the updated description.

    0 讨论(0)
  • 2021-02-20 12:59

    I also experienced this issue in Visual Studio 2015 Update 3.

    I enabled Diagnostic MSBuild project build output verbosity in Visual Studio's Tools > Options and discovered that it was copying a version of the XML documentation file from another project's output directory.

    Only after I did a Clean on all the solution's build configurations and then re-built my project, did the XML documentation file get regenerated and reflect the latest XML comments in my code.

    0 讨论(0)
  • 2021-02-20 13:02

    I faced this exact problem and I couldn't figure it out for the life of me.

    It turned out that I had a old version of the .xml file in a folder where I saved dlls used in the project. So visual studio was just copying that xml file instead of generating a new one. (This was on Visual Studio Communtiy 2017)

    So check if you have a old version of the .xml file in any of the same directories as any of your referenced dlls.

    0 讨论(0)
提交回复
热议问题