Can I post a private NuGet package?

I have an assembly that I did, which is very specific for my team in my company. I want to be able to use NuGet to make this build available for other projects that my teams and similar teams in my company are working on. However, assembly is not the code I want to share with the world.

I know with Maven, you can create local repositories and source packages from a local repo. Does NuGet support similar functionality? Is there a way with NuGet to specify a local repository or have private packages?

+72
c # visual-studio nuget
Jan 25 '13 at 17:57
source share
3 answers

Yes! You can host your own NuGet server!

The easiest way is to create a shared folder on your server and refer to it as a Nuget Server.

You can find more information on how to do this: Hosting Your Own NuGet Channels

+61
Jan 25 '13 at 17:59
source share

Another option for hosting your own NuGet server is to use JetBrains TeamCity as the build server. The setup is described here .

Team City Server acts as a NuGet repository that will / may / should be available only in your company.

Based on your use, there are free software versions.

It has some interesting options, such as the ability to publish a new version of NuGet on demand, with each new build of continuous integration, etc. One of the most useful bits (as for all NuGet server implementations) is that it will contain dozens of older versions of your assemblies, so if you have one project that should link to the latest version, and another project that should reference the older version, everything will work.

+16
Jan 25 '13 at 18:27
source share

Check out the free version of ProGet ; we built it for this purpose. It takes much less time to configure and offers many features higher and higher than those offered on a standard NuGet server, such as multiple channels, channel aggregation and additional types of repositories (npm, Bower, etc.).

If you want to pay for the corporate version, you can also use LDAP for authentication and the ability to filter channels by name / license from connected feeds (i.e. the official NuGet channel).

+12
Jan 25 '13 at 22:52
source share



All Articles