Printed 2017/07/21 09:33AM

How To Make Your DLL Into A NuGet Package for a Private NuGet Feed

By nycdotnet, 2013/06/05

This is my reinterpretation of the documentation on, modified to remove the public publishing steps, and to add local publishing steps and a source control reminder.  This guide is intended to help enable the benefits of NuGet for proprietary code such as business-specific DLLs that are not fit for public distribution.  There are plenty of details, options, features, and gotchas with NuGet that are not covered here, but this should hopefully be enough to help you get started.

Step 1 is to set up a private NuGet feed.  You only need to do this once for your organization.

Step 2 is to write a cool or useful library (such as a DLL) in Visual Studio.

Step 3 is to get the NuGet.exe file which is not included by default even if you have NuGet Package Explorer working in Visual Studio.

Step 4 is to set up NuGet in your solution.

Step 5 is to package up your project.

Step 6 is to copy your .nupkg file to the shared folder that you set up in step 1.

Step 7 is to begin using your freshly created NuGet package in your team's other projects!

Copyright © 2002-2017 Redgate. All Rights Reserved. Privacy Policy. Terms of Use. Report Abuse.