How to bring NuGet packages into SVN?

5

I use Visual Studio 2012 with VisualSVN plugin, which I believe the best in handling source control with SVN.

I found that it won't add or commit NuGet packages unless I do it manually with TortoiseSVN.

I thought that adding the packages directory recursively to solution helps because VisualSVN will detect the files and add them to Subversion.

Any idea on how to synchronize SVN repository with NuGet packages downloaded for the solution?

usr-local-ΕΨΗΕΛΩΝ

Posted 2012-12-27T22:21:07.213

Reputation: 3 733

1

It's not common to add Nuget packages to version-control. Why don't you use "Nuget Package Restore" option? See http://stackoverflow.com/q/12769359/761095

– bahrep – 2012-12-28T11:00:36.877

1+1 because I didn't know of it. But it was already selected, and when downloading from SVN compilation did fail for missing references. – usr-local-ΕΨΗΕΛΩΝ – 2012-12-28T13:55:59.260

Answers

6

Nuget packages must be stored in own repository (if publishing of packages for team is needed), not in Subversion repo - you haven't any reasons for versioning artifacts

Lazy Badger

Posted 2012-12-27T22:21:07.213

Reputation: 3 557