Skip to content

Instantly share code, notes, and snippets.

@duncansmart
Created February 23, 2012 15:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duncansmart/1893251 to your computer and use it in GitHub Desktop.
Save duncansmart/1893251 to your computer and use it in GitHub Desktop.
Script to download Nuget packages
$http = new-object System.Net.WebClient
$feed = [xml]$http.DownloadString("https://nuget.org/api/v2/Packages")
$feed.feed.entry | % {
$http.DownloadFile($_.content.src, ("C:\temp\"+ $_.title.InnerText + "." + $_.Properties.Version +".nupkg"))
}
@duncansmart
Copy link
Author

Just for fun ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment