18

Closed

Enable Package Restore - Selective Projects

description

From http://nuget.codeplex.com/discussions/284405

Enable Package Restore is a great feature. One enhancement I would like though is if it would only update those projects that actually use NuGet. Or alternatively allow me to select which project(s) I want package restore enabled for.


In my current solution I have 37 projects, only a couple of which use NuGet. I was thinking that only they would get updated. It took a little bit of time to undo pending changes on the project files for the other 35 projects.
Closed Jan 28, 2013 at 10:37 PM by danliu
verified using the lastest build from master.

Steps:
  1. create a solution with multiple project
  2. install packages to one of the projects, but not to others
  3. add solution to source control, check in
  4. enable package restore
  5. check pending changes
expected: only project files that has nuget packages installed has pending changes.

comments

davidebbo wrote Dec 28, 2011 at 10:34 PM

I'd say it should just update projects that use NuGet, without any UI (which is more painful to implement). If you later start using NuGet in other projects (or add new projects), you can always rerun it.

thnk2wn wrote Dec 28, 2011 at 10:43 PM

I agree, it would be most ideal if it just updated the projects that used NuGet

JeffHandley wrote Mar 8, 2012 at 9:44 PM

Moving to Backlog, pending more votes.

dumbledad wrote Apr 4, 2012 at 7:38 AM

This would be very useful for me especially on our larger projects where different developers use different projects in their solutions including some shared utility projects and so it is not possible for me to mandate NuGet on those shared utility projects. I'd like to be able to choose to omit some of the projects in my solution.

mr_miles wrote Jun 27, 2012 at 6:31 PM

Just hitting this issue, nuget keeps turning it on no matter what i specify in the proj file

deepakverma wrote Nov 29, 2012 at 7:10 AM

clearing the release field as there are more votes now.

JeffHandley wrote Nov 29, 2012 at 10:17 PM

We should address this as part of a larger feature to simplify package restore and allow for the non-trivial use cases.

JeffHandley wrote Jan 23, 2013 at 9:41 PM

Triage: moved into 2.3 due to high vote count.
This is not a guarantee that it will be completed in 2.3 though.