Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hyperlink in the description of the NuGet package in .nuspec

I'm developing a NuGet package and keep it open source at github.com

My package after installation requires a few configuration steps to be done in VS solution, and I document this in README.md file on github.

I'd like to reference this README.md file in the NuGet package, so that people know what to do after package installation.

I've specified <projectUrl> in my .nuspec file pointing to my Git repo on github. But it's not obvious for users that they need to click it to read documentation.

I'd like to make it loud and clear for users to follow the link to read full documentation. It would be nice to have a hyperlink, for example in the <description> field of the .nuspec file, so it's displayed as a hyperlink on the:

  • project page on nuget.org
  • package details shown in Visual Studio when browsing \ installing the package

I've tried different ways to add a link, for example XML-escaping < and > as &lt; and &gt; but it doesn't show it as a link, but just as an html text.

like image 228
Ivan Avatar asked Jan 11 '17 15:01

Ivan


1 Answers

The < licenseUrl> and < projectUrl> are the two tags which will show hyperlink in the NuGet package manager. You cannot provide hyperlinks in any other tags. If you want to provide a hyperlink use any of these. Otherwise, you can use a readme file.

like image 109
Mathivanan KP Avatar answered Sep 25 '22 09:09

Mathivanan KP