Create a private NuGet package feed using the online service

    NuGet brings support for installing development components using packages into the world of .NET development. Since the launch of NuGet at the beginning of the year , over 4000 packages have already been created in its repository , and the number of package downloads is approaching one million.

    NuGet's capabilities are not limited to the official package repository. Any company or individual developer can create their own package of packages with limited access within the organization. Due to the fact that the integration tool NuGet with the development environment Visual Studio supports private tape packages, anyone can use their tapes in the same way as the official one. Thus, the benefits and convenience of NuGet can also be used when you cannot or do not want to distribute the components publicly.

    Along with the ability to independently create tape packages on your own infrastructure, there is another possibility. MyGet has recently been launched, which offers the quick creation of private NuGet package feeds as a service. As jokes on the MyGet website are, NuGet as a Service (NaaS).

    image

    This article describes the service and discusses how to use it.

    MyGet service is located at http://www.myget.org/ , it offers several authorization options, including through Windows LiveID, Google, Yahoo! and Facebook.

    image image

    After successful authorization, you will be taken to the page for creating your own private NuGet feed:

    image

    Here you can give a name to the package tape and set a unique identifier for your tape that is convenient for you, which at the same time is a secret key, since it will be through this that the tape of your packages will be accessed. If you are not concerned about the security of access to your packages, for example, you just want to create your own feed with your favorite packages for easy access, then you can specify a name simply.

    Click the “Continue ...” button and in the next window you will immediately receive a valid link to your package feed, as well as an API key for accessing the package feed through the API site. Here you can add packages to your feed using the “Add a package ...” button.

    image image

    On the form, there are three options for adding packages to your feed: from the official NuGet repository, from the user's computer and by creating a package. While only the second opportunity is working, the service has just been launched and the remaining options are still in the implementation plans.

    Use the file selection control to add .nupkg packages to your private package feed.

    image image

    You will then receive a notification that the package has been successfully added to the feed. If you return to the page of your feed on the service, you will see a list of installed packages:

    image image

    It remains to use our personal tape packages for work. Launch Visual Studio 2010 with NuGet installed and add your personal MyGet service feed to the list of NuGet feeds in the package manager settings. For the sake of testing, remove the official NuGet feed from the feed list, after saving its settings.

    image image

    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.

    image

    Conclusion


    Using the MyGet service, you can easily create your own private NuGet package feeds without the need to create your own infrastructure to support such feeds. You do not need to invest in developing your own solution, just use the convenient site.

    In addition, MyGet is an open source project, its official page is located on the CodePlex website at http://myget.codeplex.com/ . You can help the project with your comments, testing, or even code.

    Also popular now: