Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nuget uninstall packages vs SVN working copy

Good day!

I'm starting with NuGet 1.2 on VS2010 Express. I use SVN for my projects (without integration into VS, just TortoiseSVN). The question is -- it seems that NuGet creates folder /packages/ in the root of the solution. It seems that while uninstalling a package NuGet will remove the package folder. This will break the SVN working copy.

Any guidelines on SVN and NuGet working together?

Thanks in advance!

Update: I don't mean that the whole /packages/ folder is removed, I mean that, for example when upgrading T4MVC to 2.6.45 folder /packages/T4MVC.2.6.44 (along with .svn folder inside) will be removed and this will break SVN working copy.

Update 2: As I checked -- NuGet doesn't delete folders if something not belonging to package is inside it (.svn folder in my case). So if you prefer to store packages in SVN like I do -- after upgrade you should delete folder left from older version of the package from SVN.

like image 591
artvolk Avatar asked Apr 04 '11 13:04

artvolk


Video Answer


1 Answers

There is a way to run NuGet without checking in the Packages Folder. You would just exclude the whole folder from SVN and follow the steps outlined in David Ebbo's post: http://blog.davidebbo.com/2011/03/using-nuget-without-committing-packages.html

like image 57
Matthew M. Osborn Avatar answered Oct 11 '22 13:10

Matthew M. Osborn