I have a project with about 20 nuget packages, and some packages depends on others as usual.
After retargeting packages or changing versions, update-package -reinstall has some issues with the package tree resolution, where it selects, installs and uninstalls multiple versions of the same package multiple times.
This is probably due to the issue that [nuget won't select the latest version of a dependency during install](https://nuget.codeplex.com/workitem/3586), but for example, doing the "update-package -reinstall" causes jquery to be uninstalled and reinstalled 5 times in my project, changing from 2.0 to 1.7, back to 2.0, then to 1.9, then to 2.0 again then finishes in 1.9.1.
After that, I need to do an update-package to fix the mess and update the packages to the latest version.
The package resolution should just check the higher dependency, and reorder the packages, installing then using the latest allowed version for all packages only once.
Comments: Thanks. Yes this is a known issue. We're working to fix it.
After retargeting packages or changing versions, update-package -reinstall has some issues with the package tree resolution, where it selects, installs and uninstalls multiple versions of the same package multiple times.
This is probably due to the issue that [nuget won't select the latest version of a dependency during install](https://nuget.codeplex.com/workitem/3586), but for example, doing the "update-package -reinstall" causes jquery to be uninstalled and reinstalled 5 times in my project, changing from 2.0 to 1.7, back to 2.0, then to 1.9, then to 2.0 again then finishes in 1.9.1.
After that, I need to do an update-package to fix the mess and update the packages to the latest version.
The package resolution should just check the higher dependency, and reorder the packages, installing then using the latest allowed version for all packages only once.
Comments: Thanks. Yes this is a known issue. We're working to fix it.