'Possible to include XML doc (C#) in nuget package?

We're currently creating an "automatic API self documentation" system which requires us to include the XML documentation from libraries (we put all our models into nuget packages as well, so every developer can use the same).

XML documentation file generation works like a charm, but when referencing the nuget packages, the XML files of the libraries are not put into the /bin directory of the actual service.

What is necessary to force nuget packages to also install the .xml-files for each .dll?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source