NuGet / Home

Repo for NuGet Client issues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug Bash] All checked projects were unchecked automatically when switching from ‘Updates’ or ‘Consolidate’ tab in the solution-level PM UI

v-luzh opened this issue · comments

NuGet Product Used

Visual Studio Package Management UI

Product Version

Dev\6.11.0.113

Worked before?

It is not a regression since it reproes on both D16.11\34601.136 & D17.10\34902.84.

Impact

It bothers me. A fix would be nice

Repro Steps & Context

Repro Steps:

  1. Create a solution with multiple projects, right-click the solution in the Solution Explorer window and select the menu item “Manage NuGet Packages for Solution…”..
  2. Go to ‘Browse’ tab, select ‘nuget.org’ in the ‘Package source’ drop-down list and install a package into the projects.
  3. Check all the projects in the right panel of ‘Browse’ tab.
  4. Click the ‘Installed’ tab, click the installed package in the package list and observe the right panel.
  5. Click the ‘Updates’ tab or ‘Consolidate’ tab, click the ‘Installed’ tab again and observe the right panel.

Expected Results:

All checked projects should not be unchecked automatically in step5 (same with the behavior in step4).

Actual Result:

All checked projects were unchecked automatically in step5 as the screenshot below.
image

Notes:

  1. Repro rate: 100%.
  2. Switching to ‘Installed’ tab from ‘Browse’ tab is correct but switching to ‘Installed’ tab from ‘Updates’ or ‘Consolidate’ tab is incorrect.

Verbose Logs

No response

@jebriede do you know what the expected behavior should be when navigating the tabs in the PMUI? Currently when you hit the Update tab, it deselects any project which doesn't have the package already installed, which makes sense to me. When navigating back to the Browse or Installed tab it unselects all of them, instead of maintaining state. It doesn't maintain the selected state when opening the PM UI either.