如何打开 NuGet 包的自述 URL? [英] How to open readme URL for NuGet package?

查看:66
本文介绍了如何打开 NuGet 包的自述 URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在NuGet中,你可以在包的根目录下放一个readme.txt,它会自动打开.但是,我看到 NuGet 包在安装时打开了一个 URL.这是如何完成的(您可以查看 此 NuGet 包 的示例).

In NuGet, you can put a readme.txt in the root of the pacakge and it will open automatically. However, I have seen NuGet packages open a URL upon installation. How is this done (you can see an example with this NuGet package).

推荐答案

这是通过包的 tools\install.ps1 文件中的 PowerShell 脚本完成的.下载 Glimpse 包 包,解压存档,查找 tools\install.ps1文件.

It is done through a PowerShell script in the package's tools\install.ps1 file. Download the Glimpse package package, extract the archive, look for the tools\install.ps1 file.

在底部,您会找到以下执行导航的脚本:

At the bottom, you'll find the following script which performs the navigation:

$DTE.ItemOperations.Navigate("http://getglimpse.com/Version/Install/?" + $package.Id + "=" + $package.Version)

这篇关于如何打开 NuGet 包的自述 URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆