Menu Close

How to publish Nuget packages on a self hosted server

Hosting your own Nuget Server is really easy, and is simply a file share location. Nothing special.
The main reason for hosting your own Nuget Server is to ensure your continuous build server does not have direct access to the internet.
This will reduce the possibility your assets could become compromised.

Let’s get started.

First you will need to download the Nuget package(s) you want to self host.
You can either create your own Nuget package, or download one from

Download all the packages you want to host to a single temporary download folder.
e.g. c:\nuget

Open a command prompt window.

Type the following command:

> c:\nuget init [source folder] [destination folder]


> c:\nuget init c:\Temp \\MyServer\Nuget