Home .NET Creating a private NuGetpackage feed using an online service

Creating a private NuGetpackage feed using an online service

by admin

NuGet has brought support for installing development components using packages to the world of .NET development. Since NuGet launched earlier this year, its repository has already created over 4, 000 packages , and the number of package downloads is approaching a million.
NuGet’s capabilities are not limited to the official package repository. Any company or individual developer can create their own tape of packages, with limited access within the organization. Because NuGet’s integration tools with the Visual Studio development environment support private package tapes, anyone can use their own tapes in the same way as the official one. Thus, the benefits and convenience of NuGet can also be used when you can’t or don’t want to distribute components publicly.
Along with the ability to create your own package feed on your own infrastructure, there is another option. MyGet has recently launched a service that offers quick creation of private NuGet package feeds as a service. As the MyGet site jokes, it’s NuGet as a Service (NaaS).
Creating a private NuGetpackage feed using an online service
This article describes the service and discusses how to use it.
The MyGet service is located at http://www.myget.org/ , it offers several authentication options, including Windows LiveID, Google, Yahoo! and Facebook accounts.
Creating a private NuGetpackage feed using an online serviceCreating a private NuGetpackage feed using an online service
After successful authorization, you will be taken to the page for creating your private NuGet feed:
Creating a private NuGetpackage feed using an online service
Here you can name the tape of your packages and set a unique identifier for your tape which is also your secret key, because that is how the tape of your packages will be accessed. If you are not concerned about securing access to your packages, for example if you just want to create your own feed with your favorite packages for easy access, you can specify a simple name.
Click "Continue…" and in the next window you will immediately get a valid link to your package feed, as well as the API key to access the package feed via the API site. Here you can also add packages to your feed using the "Add a package…" button.
Creating a private NuGetpackage feed using an online serviceCreating a private NuGetpackage feed using an online service
The form offers three options to add packages to your feed: from the official NuGet repository, from the user’s computer and by creating a package. Only the second option is working for now, the service is just running and the other options are still in the plans.
Use the file selection control to add .nupkg packages to your private package feed.
Creating a private NuGetpackage feed using an online serviceCreating a private NuGetpackage feed using an online service
Then you will get a notification that the package was successfully added to your feed. If you go back to your feed page on the service, you will see a list of installed packages :
Creating a private NuGetpackage feed using an online serviceCreating a private NuGetpackage feed using an online service
All that’s left to do is to use our personal package feed to get to work. Launch Visual Studio 2010 with NuGet installed and add your personal MyGet service ribbon to the NuGet ribbon list in the package manager settings. For the sake of testing, remove the official NuGet feed from the list of feeds, saving its settings in advance.
Creating a private NuGetpackage feed using an online serviceCreating a private NuGetpackage feed using an online service
After that, enter the command in the console to add the package to the project and make sure that the package was successfully installed already from your private storage in the MyGet project.
Creating a private NuGetpackage feed using an online service

Conclusion

With the MyGet service, you can easily create your own private NuGet pact feeds without having to build your own infrastructure to maintain those feeds. You don’t need to invest in developing your own solution, just use the handy site.
In addition, MyGet is an open source project, its official page can be found on the CodePlex website at http://myget.codeplex.com/ You can help the project with your comments, testing, or even code.

You may also like