[Dotnet Package Search] The search result of the package should be “version” instead of “latestVersion” when executing command “dotnet package search <Package Name> --exact-match --format json” #13158
Labels
Category:BreakingChange
Category:Quality Week
Issues that should be considered for quality week
Found:ManualTests
Priority:2
Issues for the current backlog.
Type:Bug
Milestone
NuGet Product Used
dotnet.exe
Product Version
.NET SDK 9.0.100-alpha.1.24062.11
Worked before?
It’s not a regression issue since it is a new feature.
Impact
It bothers me. A fix would be nice
Repro Steps & Context
Repro Steps:
1.Patch the latest .NET SDK version (9.0.100-alpha.1.24062.11) with NuGet Client Pipelines - Run 6.9.0.86 artifacts (visualstudio.com).
1.1 Download the Entropy to the desktop of test machine.
1.2 Download and extract the NuGet Client build “6.9.0.86->nupkgs - NonRTM” (named to “nupkgs”) to the desktop of test machine.
1.3 Update the $SDKChannel = "LTS" and $SDKVersion = "9.0.100-alpha.1.24062.11" in the “patchOnWindows.ps1” file of the downloaded “Entropy\SDKPatchTool”.
1.4 Modify the $patchSDKFolder = "C:\Users[UserName]\Desktop\PatchedSDK" and $nupkgsPath = "C:\Users\v-luzh\Desktop\nupkgs" (the path of downloaded nupkgs in step 1.2) in the “patchOnWindows.ps1” file of the downloaded “Entropy\SDKPatchTool”.
2. After patching finished, go to the patchedSDK folder and execute the command
.\dotnet package search NUnit --exact-match --format json
in powershell.Expected Results:
The search result of the package should be “version” instead of “latestVersion” since one package only has one latest version. Like the result of the searching the same package with “--format table” by default as below.
Actual Results:
The search result of the package shows a lot of “latestVersion” which does not make sense as below screenshot.
Note:
Repro rate: 100%
The text was updated successfully, but these errors were encountered: