[Bug]: RegistryKeyUtility.GetValueFromRegistryKey()
has unused parameter, leading to incorrect results
#11407
Labels
Category:Quality Week
Issues that should be considered for quality week
Priority:2
Issues for the current backlog.
Product:NuGet.exe
NuGet.exe
Type:Bug
Milestone
NuGet Product Used
NuGet.exe
Product Version
6.0
Worked before?
No
Impact
It bothers me. A fix would be nice
Repro Steps & Context
By taking a look at
RegistryKeyUtility
code, there's an unused parameter calledregistryKeyPath
https://github.com/NuGet/NuGet.Client/blob/a8b6b1fb3a1bccd207a83612cd0f5e1f4ff1d0b8/src/NuGet.Clients/NuGet.CommandLine/RegistryKeyUtility.cs#L12
This leads to incorrect registry key readings.
With those incorrect registry key readings,
nuget.exe
cannot print correct warning messages when Long Path Support is enabled.Also, the registry key checks runs on code that should only run on Windows Environments.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: