简体   繁体   English

.nu​​spec中NuGet包描述中的超链接

[英]Hyperlink in the description of the NuGet package in .nuspec

I'm developing a NuGet package and keep it open source at github.com 我正在开发一个NuGet包,并在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. 我的软件包安装后需要在VS解决方案中完成一些配置步骤,并在github上的README.md文件中记录。

I'd like to reference this README.md file in the NuGet package, so that people know what to do after package installation. 我想在NuGet包中引用这个README.md文件,以便人们知道在安装包之后该怎么做。

I've specified <projectUrl> in my .nuspec file pointing to my Git repo on github. 我在我的.nu​​spec文件中指定了<projectUrl> ,指向github上的Git repo。 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: 有一个超链接会很好,例如在.nu​​spec文件的<description>字段中,所以它在下面显示为超链接:

  • project page on nuget.org nuget.org上的项目页面
  • package details shown in Visual Studio when browsing \\ installing the package 浏览\\安装程序包时Visual Studio中显示的程序包详细信息

I've tried different ways to add a link, for example XML-escaping < and > as &lt; 我尝试了不同的方法来添加链接,例如XML-escaping <> as &lt; and &gt; &gt; but it doesn't show it as a link, but just as an html text. 但它不会将其显示为链接,而是作为html文本显示。

The < licenseUrl> and < projectUrl> are the two tags which will show hyperlink in the NuGet package manager. <licenseUrl>和<projectUrl>是两个标签,它们将在NuGet包管理器中显示超链接。 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. 否则,您可以使用自述文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM