Skip to content

[Bug Bash] [Unstable] The first removing of a source mapping from the ‘Package Source Mappings’ list in ‘Package Source Mapping’ dialog doesn’t work  #13520

Open
@v-luzh

Description

@v-luzh

NuGet Product Used

Visual Studio Package Management UI

Product Version

Dev\6.11.0.87

Worked before?

It is not regression since it can be reproduced on D17.9\34601.282.

Impact

It bothers me. A fix would be nice

Repro Steps & Context

Repro Steps:

  1. Create a C# Console App (.NET 8.0) project and open the PMC.
  2. Click the ‘settings’ button on the top of PMC window and click ‘NuGet Package Manager->Package Source Mapping’ tab.
  3. Click the ‘Add’ button, add several package source mappings and click ‘OK’ button.
  4. Click the ‘settings’ button on the top of PMC window and click ‘NuGet Package Manager->Package Source Mapping’ tab.
  5. Select a package source in the ‘Package Source Mappings’ list, click the ‘Remove’ button and click ‘OK’ button.
  6. Click the ‘settings’ button on the top of PMC window, click ‘NuGet Package Manager->Package Source Mapping’ tab and observe the the ‘Package Source Mappings’ list.

Expected Results:

The removed package source mapping in step5 disappears in the ‘Package Source Mappings’ list.

Actual Result:

The removed package source mapping in step5 still shows in the ‘Package Source Mappings’ list as below record.
FailToRemoveSourceMapping

Notes:

1.Repro rate: 30%.
2.Removing the source mapping will work at the second time.
3.It is easy to repro at the first operation in ‘Options->NuGet Package Manager->Package Source Mapping’ dialog. If you cannot repro anymore, please restart your VM and follow the steps above.

Verbose Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions