Download NuGet packages for self-download

The NuGet website has a great article for hosting your own NuGet channel. In our case, we are an IT store that must fully check the packages before providing them to our development staff, so we would like to host our own channel that will provide “approved packages”. One thing the article breaks down is how to pull out nuget packages for hosting. For example, if we want to host EntityFramework 5.0.0 so that our developers can use it, how can we get the package without using NuGet, since the policy prevents NuGet from accessing hosts past our firewall?

+4
source share
3 answers

Assuming you're not completely disconnected from nuget.org, you can use ProGet to host your network feed. Since ProGet allows you to create multiple channels, as well as connect to other NuGet channels, you can create one channel, for example, "NuGet Cached" and then the "Developer" feed and specify the same package storage location for both channels. The trick is to configure the connector for nuget.org in the NuGet Cached feed, and then use the Pull Package feature to upload hosted NuGet packages to your local channel.

Thus, the developers set up Visual Studio (or any other tool they use to receive packages) to point to the Developer channel, which only has packages that you explicitly pulled (since both channels store packages in the same location ) You can also add deny privileges to the "NuGet Cached" channel so that they cannot connect to it at all.

+3
source
  • Create a host server (it seems that you have one, but if it does not install and host NuGet.Service ).
  • Confirm that it works by visiting the host (you should see a very simple panel that shows the Nuget service number, etc.)
  • open VisualStudio options, "Pakcage Manager" → "Package Sources"
  • Add your internal node here (maybe something like http://internalsvr/nuget )

Then you should be able to install packages from this source locally. In addition, you can push things there or place packages in the ~/packages/ directory, and they will be automatically listed in the service.

+1
source

Perhaps you can try http://www.myget.org or use any other software there.

+1
source

All Articles