NuGet Package not copying XMLDoc file along with dll to bin

点点圈 提交于 2019-12-09 03:32:25

问题


I'm using NuGet GUI and trying to include XML File along with my DLL to distribute help along with the DLL.

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

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

Any help would be very much appreciated.

Thanks in advance


回答1:


On your side of things:

Check this post:

How do you include Xml Docs for a class library in a NuGet package?

On the developer's side of things:

The creator of the NuGet package decides some of this.

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

Find : Automatically Running PowerShell Scripts During Package Installation and Removal

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

Or you'll have to manually include it yourself.




回答2:


Both the .dll and the .xml file should be copied to your project's output folder when the project is compiled.

NuGet will not copy the .xml file, nor the .dll, in your bin folder when you install the package. If you want to do this then you will have to use PowerShell. I do not believe you need to do this since MSBuild will do this anyway at compile time.



来源:https://stackoverflow.com/questions/19136999/nuget-package-not-copying-xmldoc-file-along-with-dll-to-bin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!