How to include XML documentation file in NuGet package built from a project file?

后端 未结 2 512
傲寒
傲寒 2021-02-05 00:56

I consider it generally good practice to include the XML documentation file generated by the C# build in NuGet packages alongside the DLLs to provide intellisense documentation

2条回答
  •  误落风尘
    2021-02-05 01:28

    For other people who came in with the same problem - and if the accepted answer does not help...

    Make sure that you have set the 'Include XML documentation' setting in the build configuration you are using (not just Debug, as by default)

    In Visual Studio:

    or in csproj:

     
        true
      
    

提交回复
热议问题