technology

Download a local NuGet repository using Nuget

I was setting up a development environment on a remote server today, and due to the security constraints on the machine, I wasn’t able to reach the official NuGet feed. After some searching, I found the Nuget.Downloader package, which allows you to download all of NuGet locally!

Because NuGet allows you to specify a local folder as a source, all I had to do was

  • run the Download-Packages -top 100 command (to get the top 100 most popular packages)
  • copy the folder up to my server
  • point NuGet package manager to that folder
Advertisements
Standard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s