O'Reilly logo

Professional ASP.NET MVC 3 by K. Scott Allen, Brad Wilson, Phil Haack, Jon Galloway

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required