Wednesday, November 25, 2015

Setting up and deploying your own NuGet server Step-by-Step

You may have read this article about how to set up your own NuGet Server:

However, this article leaves out several critical elements required to set up, configure and deploy your own NuGet Server.

Before you get started, though, you will need to make sure your systems are set up with the necessary prerequisites:

  1. Make sure you install .NET Framework v. 4.5 (or later) on your target web server
  2. Make sure you install Web Deploy for IIS on your target web server (
  3. I am using Visual Studio 2015 for this example, so make sure you have either Visual Studio 2013 or Visual Studio 2015 in order to build and publish the NuGet Server web deployment package.
  4. From the Tools menu in Visual Studio, you can select "Create GUID" to generate the GUID that you will need for your NuGet Server API Key.  You will need to generate the GUID in "Registry Format" and then remove the curly braces ({}) from the GUID before entering it into your NuGet Server's Web.config file.
  5. From Visual Studio, you will need to Publish your Web Application as a Web Deploy package.
  6. On the target web server, you will need to select the option for "Import Application" to begin the process of importing the Web Deploy package. 
  7. If you have done everything correctly, when you browse to http://myserver/NuGet, you will get the NuGet page shown below!

Below are the steps needed to create and deploy your very own NuGet Server:

No comments:

Post a Comment