[Bug Bash] The ‘update’ button should not be clickable when selecting an already installed 'PackageReference' version in the ‘version’ dropdown list after switching to another package source #14165
Labels
Found:ManualTests
Functionality:Update
The update package feature/command/experience
Functionality:VisualStudioUI
Package Manager UI et al
Priority:3
Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.
Product:VS.Client
Type:Bug
NuGet Product Used
Visual Studio Package Management UI
Product Version
NuGet Client Dev\6.14.0.59
Worked before?
It is a regression since the issue reproes on D17.13\35825.156 with implicit NuGet 6.13.2.1, but doesn't repro on D16.11\35818.1 with implicit NuGet 5.11.6.4.
Impact
It bothers me. A fix would be nice
Notes:
The repro rate is 100%.
It doesn’t repro when installing the package with “Packages.config” format.
It also reproes on SDK based projects.
PM UI will install the latest version instead of the re-selected installed version if you click the ‘Update’ button in step 10.
Repro Steps & Context
Create a C# Console App project (.NET Framework 4.8.1).
Open Package Manager Settings dialog through menu Tools->NuGet Package Manager->Package Manager Settings.
Click the Package Sources tab, and add a custom feed source, type in the name is “Myget” and the package source is
https://www.myget.org/F/andy-nuget-project/api/v2
.Check the “nuget.org” in Settings->NuGet Package Manager->Package Sources.
Go back to PM UI -> Select the package source: “nuget.org” near the gear button.
Go to the “Browse" tab, install a “log4net 3.0.1” with a ‘PackageReference’ format into the Project.
Switch the package source to ‘Myget’.
Click the ‘Updates’ tab and select the “log4net” package.
On the right details panel, select the same version installed package in the dropdown box (3.0.1 for the current instance).
Observe the ‘Update’ button on the right of the dropdown box.
Expected:
The ‘Update’ button should not be clickable.
Actual:
The 'Update' button remains clickable even when selecting an already installed version.
Verbose Logs
The text was updated successfully, but these errors were encountered: