Skip to content

dotnet list package --outdated exit code #25091

@cosminstirbu

Description

@cosminstirbu

Hello,

We'd like to check for outdated packages as part of our PR pipeline.
We would like to use dotnet list package --outdated, however there is no way to tell (without parsing the output), if there are any outdated packages.

Would it be possible to opt into returning a non-zero exit code if there are outdated packages, so we can then fail our pipeline / report on it?

We're currently using https://github.com/dotnet-outdated/dotnet-outdated, however sometimes it is a hit or miss, because it fails to load the .sln.

Thank you,
Cosmin

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions