NuGet package does not copy XMLDoc file with dll to bin

I am using the NuGet GUI and trying to include an XML file along with my DLL to distribute help along with the DLL.

When I install the package in any of the projects, it successfully adds a reference to the DLL, but the XML file is not created inside the bin folder of the project into which the package is added.

XML file is available in packages \\ lib \ .XML

NuGet Package Builder GUI

Any help would be greatly appreciated.

Thank you in advance

+6
source share
2 answers

From your side:

Mark this post:

How to enable Xml Docs for class library in NuGet package?

From the side of developers:

The creator of the NuGet package solves some of these problems.

http://docs.nuget.org/docs/creating-packages/creating-and-publishing-a-package

Find: Automatically run PowerShell scripts during package installation and removal

So, I think the developer of the Nuget package will have to write voo-doo.

Or you will have to manually turn it on yourself.

+1
source

Both .dll and .xml files must be copied to the project output folder when compiling the project.

NuGet will not copy the .xml or .dll file to the bin folder when installing the package. If you want to do this, you will have to use PowerShell. I don’t think you need to do this, since MSBuild will do it anyway at compile time.

0
source

Source: https://habr.com/ru/post/955101/


All Articles