I am creating a NuGet package for a C# class library, and I would like to include generated Xml Documentation with the library. This is my nuspec file:
In .NET Core/Standard you can do this by editing the project XML file, for example:
netstandard2.0
true
bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml
This will output the documentation as an XML file next to your output assembly.
EDIT:
As a side note once you enable GenerateDocumentationFile you will probably get lots of warnings on your public methods for not having added full documentation tags. If you want to disable these warnings simply add in the PropertyGroup:
$(NoWarn);1591