Skip to content

dotnet list <project> package --include-transitive --outdated fails with "error: Sequence contains no matching element" #15134

Open

Description

@paulomorgado

NuGet Product Used

dotnet.exe

Product Version

.NET SDK 10.0.403

Worked before?

Worked with .NET SDK 10.0.111

Impact

I'm unable to use this version

Repro Steps & Context

dotnet list MyProject.csproj package --include-transitive --vulnerable

Works!

dotnet list MyProject.csproj package --include-transitive --deprecated

Works!

dotnet list MyProject.csproj package --include-transitive --outdated

Fails with "error: Sequence contains no matching element"

dotnet list MyProject.csproj package --include-transitive --outdated --include-preview

Works!

Verbose Logs

Activity

  1. paulomorgado commented on Nov 9, 2026

    @paulomorgado
    Author

    @zivkan, could this be related to NuGet/NuGet.Client#7754?

  2. zivkan commented on Nov 10, 2026

    @zivkan
    Member

    yes, it appears it's the same bug. Unfortunately the fix only made it into 11.0.2xx. Talking about this issue in team triage, we think that without more upvotes, it doesn't meet the bar for servicing. So, I'm leaving this open to collect more 👍 update (on the first/original comment in this issue, reactions on my comment doesn't count).

  3. added
    Priority:3
    Functionality:ListPackage
    and removed on Nov 10, 2026
  4. paulomorgado commented on Nov 10, 2026

    @paulomorgado
    Author

    yes, it appears it's the same bug. Unfortunately the fix only made it into 11.0.2xx. Talking about this issue in team triage, we think that without more upvotes, it doesn't meet the bar for servicing. So, I'm leaving this open to collect more 👍 update (on the first/original comment in this PR, reactions on my comment doesn't count).

    Thanks, @zivkan.

    If it goes through, will it be backported to .NET 10.0 SDK?

  5. zivkan commented on Nov 10, 2026

    @zivkan
    Member

    I would assume so, given 10 is an LTS release and 11 is not. But it's up to the release manager to approve.

  6. arjenkeijzer commented on Nov 18, 2026

    @arjenkeijzer
    dotnet list MyProject.csproj package --include-transitive --outdated --include-preview
    

    Works!

    I am not aware of an --include-preview option. If you meant --include-prerelease, unfortunately that does not work for me --> it throws an error:

    dotnet package list --include-transitive --outdated --include-prerelease
    Restore complete (1.4s)
    
    Build succeeded in 1.5s
    error: Sequence contains no matching element
    
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

    Functionality:ListPackagePriority:3Type:Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions