When changing a package version, update rather than replace the tree node #8998
Labels
Feature-Dependency-Node
"Dependencies" node in Solution Explorer that display project, binary & package references
Resolution-Fixed
The bug has been fixed, refer to the milestone to see in which release it was fixed.
Tenet-Performance
This issue affects the "Performance" tenet.
Tenet-User Friendly
This issue affects the "User Friendly" tenet; UI usability, accessibility or high-DPI related.
Triage-Approved
Reviewed and prioritized
The dependencies tree currently looks for the node to update based on its caption.
When we change a package
MyPackage
from version1.0
to2.0
, the caption changes fromMyPackage (1.0)
toMyPackage (2.0)
.The current code thinks these are different packages and therefore removes the old tree and attaches a new one. This has the effect of causing the package's node to collapse if it were expanded, which is annoying.
Note any change here will need a corresponding change on the NuGet.Client side, as that code doesn't currently update attached child nodes if the package's version changes.
The text was updated successfully, but these errors were encountered: