Creating a NuGet Web Site
In that article, I showed how to use a folder as a repository for NuGet packages. But if you'd like something a little more professional, you can create a NuGet Web site. It's easy to do: First, in Visual Studio, create an Empty Web Application. Once the project appears in Solution Explorer, right-click on it and select Manage NuGet Packages. In the NuGet Package Manager, do a search for the NuGet.Server package and install it.
After deploying your Website, you just need to do two things:
- Save your NuGet packages into the Packages folder in your new site.
- Tell Visual Studio about your site.
My earlier article walks through both processes. You can get the information for your site by surfing to it with your browser -- its default page provides both the file path to the folder you should save your package in and the URL you should use when telling Visual Studio about your NuGet site.
I'll put in one caveat: I only tested this on IIS 7.
Posted by Peter Vogel on 12/03/2015 at 10:18 AM