Skip to content

[Bug Bash] New added package source mapping will lost after switching back to the "Package Source Mapping" tab from other tab in “Option->NuGet Package Manager” window  #13150

Open
@CiciLi1

Description

@CiciLi1

NuGet Product Used

Visual Studio Package Management UI

Product Version

NuGet Client Dev\6.9.0.85

Worked before?

No response

Impact

It bothers me. A fix would be nice

Repro Steps & Context

Repro Steps:       

  1. Create a .NET Core Console App project via VS.
  2. Right-click the project in Solution Explorer and select ‘Manage NuGet Packages…’ menu item to open PM UI.
  3. Click the “settings” button on the right panel and click “Package Source Mapping” tab.
  4. Click “Add” button, type a string (e.g. “Microsoft”) in the package pattern textbox and select a package source in the source.
  5. Click “Add” button on the bottom.
  6. Click another tab (for example: “Package Sources” tab).
  7. Switch back to “Package mapping Source” tab.

Expected:     

The new added package source mapping (in step5) should be still in the list.

Actual:        

The new added package source mapping lost as the record below. 
PackageSourceMapping

Notes:    

1.The repro rate is 100%.  
2.This is not a regression since it is a new feature.    
3. The issue doesn’t repro in “Package Sources” tab.

Verbose Logs

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions