Nuget consolidate vs update

Visual Studio-2015Nuget

Visual Studio-2015 Problem Overview


In NuGet for Visual Studio 2015, what is the difference between consolidate and update actions? In both cases I select a specific version that I want to use in selected projects.

Visual Studio-2015 Solutions


Solution 1 - Visual Studio-2015

The Update tab is geared to display packages which have updates available while the consolidation tab is geared to display discrepancies between projects where both consume the same nuget package but are targeting different versions.

Solution 2 - Visual Studio-2015

Sometimes the versions installed into projects within a solution can drift apart and it is necessary to consolidate the versions in use.

See https://docs.nuget.org/release-notes/nuget-3.0-preview for more information.

Solution 3 - Visual Studio-2015

According to this blog, it simply makes it easier to update different versioned NuGet packages across your projects

Solution 4 - Visual Studio-2015

Consolidate has now been documented here: NuGet Package Manager UI -> Consolidate tab


Tthanks to @kraigb to getting this into the official docs; reference: GitHub Issue

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionyatskovskyView Question on Stackoverflow
Solution 1 - Visual Studio-2015Jordan BrookerView Answer on Stackoverflow
Solution 2 - Visual Studio-2015iwhpView Answer on Stackoverflow
Solution 3 - Visual Studio-2015Mohamed BadrView Answer on Stackoverflow
Solution 4 - Visual Studio-2015spottedmahnView Answer on Stackoverflow