[Bug Bash] The sources order in ‘Package Source Mappings’ tab is inconsistent with ‘Package Source’ tab when they were added separately #14260
Labels
Found:ManualTests
Functionality:VSOptions
Priority:3
Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.
Product:VS.Client
Type:Bug
NuGet Product Used
Visual Studio Package Management UI
Product Version
NuGet Client 6.15.0.17
Worked before?
It is not a regression since the issue reproes on D17.13\36008.115 with implicit NuGet 6.13.2.1 and the feature is not supported on D16.11\35912.113 with implicit NuGet 5.11.6.4.
Impact
It bothers me. A fix would be nice
Notes:
The repro rate is 100%.
It also reproes on non-SDK style projects.
It doesn't repro when all source mappings are added at the same time.
Repro Steps & Context
Create a C# Console App (.NET 9.0) project in VS and open the PM UI or PMC window.
Click the settings button (gear button) on PM UI or PMC window.
Click the NuGet Package Manager->Package Source Mapping in the opened “Options” window.
Ensure that there are at least three package sources listed.
Click the “Add” button in the “Add New Package Source Mapping” dialog, type the package pattern “a” in the “Package pattern:” textbox, select source in order “1”and “3” and then click “Add” button.
Add another new package source mapping with the same name “a”, select source in order 2, and click “Add” button.
Click “OK” button and reopen “Package Source Mapping” in option windows.
Expected:
The order of package sources in the “Package Source Mapping” tab should match the order shown in the “Package Sources” tab.
Actual:
The order of package sources in the “Package Source Mapping” tab doesn’t match the order shown in the “Package Sources” tab as the record below.
Verbose Logs
The text was updated successfully, but these errors were encountered: