Skip to content

[Bug Bash] Newly added package source mapping shouldn’t be case-sensitive in “Option->NuGet Package Manager->Package Source Mapping” window #13210

Open
@CiciLi1

Description

@CiciLi1

NuGet Product Used

Visual Studio Package Management UI

Product Version

NuGet Client Dev\6.10.0.20

Worked before?

No response

Impact

It bothers me. A fix would be nice

Repro Steps & Context

Repro Steps:    

  1. Create a C# Console App (.NET Core 8.0) project in VS and open the PM UI or PMC window.

  2. Click the settings button (gear button) on PM UI or PMC window.

  3. Click the NuGet Package Manager->Package Source Mapping in the opened “Options” window.

  4. Click the “Add” button in the “Add New Package Source Mapping” dialog, type the package pattern “Microsoft.*” in the “Package pattern:” text-box, select the “nuget.org” and click “Add” button.

  5. Click the “Add” button again, in the “Add New Package Source Mapping” dialog, type the package pattern “microsoft.*” in the “Package pattern:” text-box, select sources “Microsoft Visual Studio Offline Packages” and click “Add” button.

  6. Click “OK” button and reopen “Package Source Mapping” in option windows.

Expected:     

The package source mappings should be consolidated automatically. The source patterns should not be treated as case-sensitive.

Actual:

This added package source mappings were not consolidated automatically as below:
MicrosoftTeams-image (3)

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” node (the newly added package source isn’t case sensitive).

Verbose Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions