Running dotnet outdated detects available update for a global package but running --upgrade doesn't update it · Issue #681 · dotnet-outdated/dotnet-outdated · GitHub
Skip to content

Running dotnet outdated detects available update for a global package but running --upgrade doesn't update it #681

Open

Description

@abatishchev

My repo is onboarded to CPM, e.g. has the following file:

  • Directory.Packages.props

Which then has the following entry:

<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'">
  <GlobalPackageReference Include="Meziantou.Analyzer" Version="2.0.222">
    <PrivateAssets>all</PrivateAssets>
    <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
  </GlobalPackageReference>
</ItemGroup >

The current version is 2.0.222 and the latest available is 2.0.224.

Running dotnet outdated detects available update:

» MyProject
  [net9.0]
  Meziantou.Analyzer  2.0.222 -> 2.0.224

However, running & dotnet outdated --upgrade leaves it as-is.

Activity

  1. abatishchev commented on Nov 17, 2025

    @abatishchev
    Author

    hi @slang25, is this project maintained? I see many issues are never responded to.

  2. slang25 commented on Nov 17, 2025

    @slang25
    Member

    Yes, although I have a long list of things I look after and this is no where near the top, so I will get to some of these issues and PRs

  3. abatishchev commented on Nov 17, 2025

    @abatishchev
    Author

    Awesome, thanks! I realize all the difficulties of maintaining a (popular) OSS project. If a code change is needed to fix this issue, please let me know - I'd love to do my part and contribute.

  4. wallymathieu commented on Dec 3, 2025

    @wallymathieu

    This looks fixed?

  5. abatishchev commented on Dec 3, 2025

    @abatishchev
    Author

    Nope, still doesn't work for me, even in version 4.6.9+5bbcc6b6fafbeaa45b590722067e334506afdb48 :(

  6. wallymathieu commented on Dec 3, 2025

    @wallymathieu

    Yes, I got confused, because previously it told that it failed while trying to update, while now it just does not update.

  7. k-cup-vm commented on Feb 18, 2026

    @k-cup-vm

    Issue still present in 4.7.0, looks like #697 didn't fix it. Changing the package from GlobalPackageReference to regular PackageVersion/PackageReference makes the package update successfully.

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