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
question: version-lock or exclude filter by framework/dependencies #622
unsure if this is able to be accomplished in some way with existing functionality, or is more of a new feature request
goal: be able to configure or pass argument that "locks" target framework to specific .net version target framework, tool will dynamically only pick up on nugets to update that are valid for this parameter.
use-case: current Sln/Projects are targeting .net8, some nugets we do not want latest version updates that are v9.x.x since they target .net9, however there are some valid v9.x.x versioned nugets that target .net8 and are valid to be updated.
ideally would have some global configuration argument to lock the tool to only recognize valid nuget updates that fall within target framework of desired .net, and do not rely on individual nuget excludes or version-lock to Major etc.
thanks
Reacted by Jennifer Moore, Martin Costello, Stuart Lang, Uwe Keim and Cezary Klus
unsure if I had missed this when originally filed this question, but does this actually already happen automatically now?
example for Microsoft.AspNetCore.Components.WebAssembly , seems dotnet outdated tool command is intelligently only wanting to bump to next patch version even though there are 9.x.x major version upgrades available (however they should be correctly excluded due to requiring higher net9.0 version)
Activity
martincostello commentedon Jan 10, 2025
I similarly need this functionality to resolve martincostello/dotnet-bumper#499.
I'm happy to do a PR to add the functionality, I just need a steer from the maintainers as to how such a feature should be exposed to users.
Add --maximum-version option
Add --maximum-version option (#640)
dylbarne commentedon Aug 12, 2025
unsure if I had missed this when originally filed this question, but does this actually already happen automatically now?
example for Microsoft.AspNetCore.Components.WebAssembly , seems
dotnet outdatedtool command is intelligently only wanting to bump to next patch version even though there are 9.x.x major version upgrades available(however they should be correctly excluded due to requiring higher net9.0 version)
ok I think I found the difference: