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 installed "PackageReferenc" package info in all the tabs cannot be updated in the solution-level PM UI when non-SDK style projects are added individually #14069

Open
ZheeYoong1125 opened this issue Jan 27, 2025 · 0 comments

Comments

@ZheeYoong1125
Copy link

ZheeYoong1125 commented Jan 27, 2025

NuGet Product Used

Visual Studio Package Management UI

Product Version

NuGet Client Dev\6.14.0.13

Worked before?

It is not a regression since it reproes on VS D17.12\35702.32.

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 doesn't repro for SDK based projects.

  4. The issue will not repro after closing VS and reopening the same solution.

Repro Steps & Context

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

  2. Right-click the Solution Explorer and select "Manage NuGet Packages for Solution…" menu item to open PM UI. 

  3. Select the package source: "nuget.org" near the gear button.  

  4. Go to the “Browse" tab, install “Newtonsoft.json 13.0.1” into Project1 with ‘PackageReference’ package format.

  5. Add another C# Console App project (.NET Framework) (called Project2).

  6. Right-click the Solution Explorer and select "Manage NuGet Packages for Solution…" menu item to open PM UI. 

  7. Go to the “Browse" tab, install “Newtonsoft.json 13.0.2” into Project2 with ‘PackageReference’ package format.

  8. Click every tab (“Browse” /Installed”/ “Updates”/ “Consolidate” tab and observe.

Expected:

The package info should be correct in every tab. The latest installed version (13.0.2) should show on the top-right of the installed package for “Browse” /Installed”/ “Updates” tab. There should be ‘1’ show on the right of “Consolidate” tab, the installed package should be show in the package list and the latest installed version (13.0.2) should show on the top-right of the installed package.

Image

Actual:

The installed ‘PackageReferenc’ package info in all the tabs is incorrect in solution-level PM UI as the record below. The secondly installed package info is not updated to every tab.

Image

Verbose Logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants