Publishing Packages
The previous section looked at how to create packages. Creating packages is useful, but at some point, you may to want to share them with the world. If you don't care to share them, you can still make use of NuGet with private feeds. I cover that later.
Publishing to NuGet.org
By default, NuGet points to a feed located at http://go.microsoft.com/fwlink/?LinkID=206669. This is a redirect link that points to the latest version of the feed. At the time of this writing, that would be http://packages.nuget.org/v1/FeedService.svc.
To publish your package to this feed, you do the following:
1. Set up an account at http://nuget.org/. In Figure 10.19 is the NuGet gallery, which is the front-end to the feed as shown.
2. Log into the site, and then click the Contribute tab. This brings you to a page with options to add a new package, manage your existing packages, or reserve a new package id. Click on the link to Add a New Package to navigate to a page where you can either upload the package or specify the URL to the package file if it's hosted elsewhere, as shown in Figure 10.20.
Uploading a package takes you to a screen that enables you to verify the metadata for the package as shown in Figure 10.21.
3. Keep the default values in Figure 10.21. In the top right, you'll notice there's a tag that states “This will be the Recommended Version.” The recommended version is the one that is displayed in the dialog and is the one that's installed when a version is not specified. ...
Get Professional ASP.NET MVC 3 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.