Pierre8r
Pierre8r

Reputation: 571

Should I add the dll of my third libraries in the version control repository?

Version control Best practices. When developing a program, I use third party libraries, NUnit and others. I want to share the sources of this program hosted on http://www.codeplex.com/ or http://code.google.com/hosting/.

What are good practices as regards third libraries? Should I add the dll of my third libraries in the version control ?

Thank you,

Upvotes: 1

Views: 223

Answers (2)

Lasse V. Karlsen
Lasse V. Karlsen

Reputation: 391456

With the introduction of NuGet you have a different way to do this.

See this post by David Ebbo: Using NuGet without committing packages.

Basically you use NuGet to download and add package references to the libraries you want (assuming there's NuGet packages for the libraries you need), but do not add the Packages folder to your repository.

Instead you modify your pre-build step of the projects that require packages so that they automatically download the packages required if they're not present.

Testing has shown that this adds a minor delay to the build process when checking if the libraries are present, so this may or may not be good enough for you.

Upvotes: 3

Simon Lee
Simon Lee

Reputation: 22334

We always do especially if we are linking against a specific version, we have an NUnit folder for example and then a version folder within it.

Upvotes: 2

Related Questions