Horst Walter
Horst Walter

Reputation: 14081

NuGet packages.config in VCS or not?

Is is advisable to check in the NuGet packages.config to my VCS (e.g. Mercurial)? Or is it better to ignore the file?

Upvotes: 7

Views: 1288

Answers (1)

Pure.Krome
Pure.Krome

Reputation: 86967

Definitely check this in.

When someone else clones/forks/copies your repository from the the repo-source(aka Origin) they need to know which packages the solution requires.

This is the magic file that has those answers.

NOTE: having this file does not mean you have the actual nuget packages on the person's local computer. That's a different topic -> i personally always have Nuget Package Restore set to on, for every solution.

Upvotes: 14

Related Questions