Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Commented Unassigned: UI prompts to update package past allowed version [3301]

$
0
0
1. Open a solution with multiple projects, exactly one of which references the jQuery NuGet package. Ensure it references jQuery 1.9.1.
2. On the project that includes the jQuery package, open packages.config and add __allowedVersions="[1.9.1,2)"__ to the jQuery line ([why?](http://stackoverflow.com/a/16151570/145173)).
3. From the main menu, click "Manage NuGet Packages for Solution".

Notice that the package manager window displays an update for jQuery 2.0.0. This should not be displayed because the update is not allowed.
Comments: No, it's not for performance reasons. The reason is that when you open the dialog at solution level, there can be multiple projects referencing that same package, and the allowedVersions values for the projects may conflict each other. So we choose the simplest solution and ignore the allowedVersions when showing updates.

Viewing all articles
Browse latest Browse all 7612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>