Skip to content

question: version-lock or exclude filter by framework/dependencies #622

Open

Description

@dylbarne

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

Activity

  1. martincostello commented on Jan 10, 2025

    @martincostello
    Contributor

    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.

  2. added a commit that references this issue on Jan 31, 2025
  3. added a commit that references this issue on Feb 2, 2025
  4. dylbarne commented on Aug 12, 2025

    @dylbarne
    Author

    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)

    Image

    ok I think I found the difference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions