Before I start talking about how to create a private Nuget server, I need to show you how do you create a Nuget package by yourself.
To create a Nuget package, you can either use Nuget.exe command line tool to do it, or use Nuget Package Explorer. Nuget Package Explorer provides the nice neat interface to allow you create a nuget package without any knowledge of command-lines syntax. To download them both, from
http://nuget.codeplex.com/releases/view/59864 (Nuget Package Explorer)
After you have created your own packages, you can now setup the private Nuget feed.
1. Create a web application in Visual Studio. I am using MVC as my Nuget server application.
2. Install “NuGet.Server” package from “Package Manager Console”.
3. Configure the package folders and ApiKey
<add key="webpages:Version" value="126.96.36.199" />
<add key="ClientValidationEnabled" value="true" />
<add key="apiKey" value="1234" />
<add key="packagesPath" value="C:\MyLocalNugetFeed" />
4. Deploy your application to IIS. And you server is running.
To view the feed and download packages.
Right click “Reference” folder of your project, Click “Manage Nuget Packages”.
Then add “http://youdomain.com/nuget” as your feed address.
You will be able to see your feeds in the list.
To publish a package
You can use Nuget Package Explorer or Nuget.exe.
Nuget Package Explorer, enter your publish Url and ApiKey then click Publish.
What are you waiting for to get your own Nuget feed and share code snippets or libraries with your mates!!
Here are some reference links may help you.