[Bug Bash] The latest package version is asked for installing again in the “Preview Changes” dialog when clicking the “Update” button in the "Updates" tab of solution-level PM UI #13169
It is not a regression since it reproes on 17.8 (D17.8\34223.131),16.11 (D16.11\34301.259) and 17.0 (D17.0\33801.228).
Impact
It bothers me. A fix would be nice
Repro Steps & Context
Repro Steps:
1.Create a solution including two C# Console App (.NET Core 8.0) projects (called “NetCore1” and “NetCore2” separately) in VS.
2.Right-Click the solution in the Solution Explorer window and select ‘Manage NuGet Packages for Solution…’.
3.Select the source “nuget.org” in the “Package source:” drop-down list and go to “Browse” tab.
4.Click a package (e.g. Newtonsoft.Json) and install a not-latest package version (e.g. 13.0.2) into “NetCore1” project and the latest version (e.g. 13.0.3) into “NetCore2” project.
5.Click “Updates” tab, check the checkbox “Select all pakcages” and click the “Update” button.
6.Observe the package info in the prompt “Preview Changes” dialog.
Expected:
The latest package version should not be asked for installing again in the “Preview Changes” dialog since it had been installed already. Like the behavior: click the “Install” button in the right panel in step5 below.
Actual:
The latest package version is asked for installing again in the “Preview Changes” dialog as below screenshot.
Notes:
It only reproes for the “Update” button, doesn’t repro when clicking the “Install” button in the right panel.
NuGet Product Used
Visual Studio Package Management UI
Product Version
Dev\6.10.0.8
Worked before?
It is not a regression since it reproes on 17.8 (D17.8\34223.131),16.11 (D16.11\34301.259) and 17.0 (D17.0\33801.228).
Impact
It bothers me. A fix would be nice
Repro Steps & Context
Repro Steps:
1.Create a solution including two C# Console App (.NET Core 8.0) projects (called “NetCore1” and “NetCore2” separately) in VS. 2.Right-Click the solution in the Solution Explorer window and select ‘Manage NuGet Packages for Solution…’. 3.Select the source “nuget.org” in the “Package source:” drop-down list and go to “Browse” tab. 4.Click a package (e.g. Newtonsoft.Json) and install a not-latest package version (e.g. 13.0.2) into “NetCore1” project and the latest version (e.g. 13.0.3) into “NetCore2” project. 5.Click “Updates” tab, check the checkbox “Select all pakcages” and click the “Update” button. 6.Observe the package info in the prompt “Preview Changes” dialog.
Expected:
The latest package version should not be asked for installing again in the “Preview Changes” dialog since it had been installed already. Like the behavior: click the “Install” button in the right panel in step5 below.
Actual:
The latest package version is asked for installing again in the “Preview Changes” dialog as below screenshot.
Notes:
It only reproes for the “Update” button, doesn’t repro when clicking the “Install” button in the right panel.
Verbose Logs
No response