Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create NuGet package that includes XML intellisense data

This link How do I create an XML Intellisense file for my DLL? explains how to build your dlls so that an XML file is included containing all your documentation headers so that they are available in those IntelliSense popups.

In my company we frequently distribute our own dlls using an internal NuGet package source. When I create NuGet packages for the package source, how do I ensure that someone else gets the dll from the package source, IntelliSense displays the documentation headers for them?

like image 933
David Avatar asked Oct 26 '12 14:10

David


People also ask

Does NuGet package include dependencies?

nupkg file. The option -IncludeReferencedProjects does include all the referenced project dependencies to the .


1 Answers

If you distribute your XML files with your NuGet package in the same folder as your Dlls then Visual Studio will then find these XML files and show IntelliSense for your assemblies.

To distribute the IntelliSense XML files you will need to add them to your .nuspec file, for example:

<files>
    <file src="bin\IronPython.dll" target="lib\Net40" />
    <file src="bin\IronPython.xml" target="lib\Net40" />
</files>
like image 124
Matt Ward Avatar answered Sep 23 '22 23:09

Matt Ward