You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parameter --maximum-version ignores exact version references #670
Here the MaxVersion determined by NuGet, which corresponds to this version in the case of an exact version reference, is replaced by the value of the --maximum-version parameter if this is greater. But it should be the other way around: The parameter may only be used if the maximum version of NuGet is greater than the parameter value passed.
Samples
(Assuming that the latest available version is 10.0.1 and the highest version in the 8.0 branch is 8.0.16.)
Activity
chefarbeiter commentedon May 26, 2025
I think the error is hidden in this condition:
dotnet-outdated/src/DotNetOutdated/Program.cs
Lines 526 to 528 in ac3663a
Here the
MaxVersiondetermined by NuGet, which corresponds to this version in the case of an exact version reference, is replaced by the value of the--maximum-versionparameter if this is greater. But it should be the other way around: The parameter may only be used if the maximum version of NuGet is greater than the parameter value passed.Samples
(Assuming that the latest available version is 10.0.1 and the highest version in the 8.0 branch is 8.0.16.)
Fix: --maximum-version ignores exact version references (dotnet-outda…