Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open readme URL for NuGet package?

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).

like image 226
TruMan1 Avatar asked Mar 14 '13 04:03

TruMan1


1 Answers

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)
like image 170
Xavier Decoster Avatar answered Sep 22 '22 22:09

Xavier Decoster