Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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

Open
ZheeYoong1125 opened this issue Mar 6, 2025 · 1 comment
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

Comments

@ZheeYoong1125
Copy link

ZheeYoong1125 commented Mar 6, 2025

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:     

  1. The repro rate is 100%.   

  2. It doesn’t repro when installing the package with “Packages.config” format. 

  3. It also reproes on SDK based projects.

  4. 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

  1. Create a C# Console App project (.NET Framework 4.8.1).

  2. Open Package Manager Settings dialog through menu Tools->NuGet Package Manager->Package Manager Settings. 

  3. 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. 

  4. Check the “nuget.org” in Settings->NuGet Package Manager->Package Sources.

  5. Go back to PM UI -> Select the package source: “nuget.org” near the gear button.

  6. Go to the “Browse" tab, install a “log4net 3.0.1” with a ‘PackageReference’ format into the Project.

  7. Switch the package source to ‘Myget’.

  8. Click the ‘Updates’ tab and select the “log4net” package.

  9. On the right details panel, select the same version installed package in the dropdown box (3.0.1 for the current instance).

  10. Observe the ‘Update’ button on the right of the dropdown box.

Expected:  

The ‘Update’ button should not be clickable. 

Image

Actual:  

The 'Update' button remains clickable even when selecting an already installed version.

Image

Verbose Logs

@kartheekp-ms
Copy link
Contributor

I am able to reproduce the issue.

Image

@kartheekp-ms kartheekp-ms added Functionality:Update The update package feature/command/experience Functionality:VisualStudioUI Package Manager UI et al and removed Triage:Untriaged labels Mar 6, 2025
@nkolev92 nkolev92 added Product:VS.Client Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants