How to include xml documentation in nuget package azure devops? [dotnet core]

Viewed 567

I have created a pipeline to build, pack and push my package to a feed on my Azure DevOps instance.

When I pack using visual studio, it uses {ABSOLUTE FILE PATH} As defined in my CSPROJ.

But when I include the package I built through Azure in a project I dont get my documention.

Is there a setting I am missing on Azure which governs Documentation Files, or must the be relatively pathed to work?

1 Answers

Do you want to include the xml document generated by the build into the nuget package? If so, you only need to add GenerateDocumentationFile attribute in csproj:<GenerateDocumentationFile>true</GenerateDocumentationFile> , so that the XML documentation is included in the package .

enter image description here

enter image description here

enter image description here

If you want to specify an additional xml document to be included in the nuget package, you can refer to the following code:

enter image description here

enter image description here

Related