31

Nuget puts the package in my root folder(in my case my trunk folder). I am wondering is there a way to let VS 2010 know about this folder? I am using ankh svn to do my commuting so it would be really nice to have it in my solution so when I add a reference I can commit it from VS 2010 and not have to go to my trunk and manually do it.

Can this be done?

Leniel Maccaferri
  • 100,159
  • 46
  • 371
  • 480
chobo2
  • 83,322
  • 195
  • 530
  • 832

4 Answers4

23

You may be interested in reading this NuGet doc:

Using NuGet without committing packages to source control

Leniel Maccaferri
  • 100,159
  • 46
  • 371
  • 480
10

The easiest way to do this currently is by using the Working Copy Explorer (View -> Working Copy Explorer). From here you can browse your solution folder, and add the reference.

I added the idea to enhance this to the AnkhSVN feedback forum, please go vote :-)

Sander Rijken
  • 21,376
  • 3
  • 61
  • 85
  • 1
    this will work fine, the issue is that you have to manual do it and when you add other packages you need to do it again. When in a team the other developers will no have the files pulled from source control automatically. So for a single dev i would agree with answer. – Simon Thompson Jun 26 '11 at 08:14
  • 1
    @SimonThompson That's not true, adding it is manual, but only needs to be done by one person that adds the reference. The rest is automatic. – Sander Rijken Sep 22 '11 at 13:08
  • This answer is obsolete. Be sure to check out Leniel Macaferi's answer for the preferred method. – Mark Meuer Jul 25 '13 at 11:53
9

You should consider 'don't commit packages workflow'. It is much more mature solution:

http://blog.davidebbo.com/2011/08/easy-way-to-set-up-nuget-to-restore.html

mikus
  • 3,042
  • 1
  • 30
  • 40
7

You can add the packages directory as a web project. I use TFS so the only issue is after adding a package I need to include these files to the source control but at least there visible...

Simon Thompson
  • 708
  • 6
  • 14