Show outdated nuget packages with dotnet CLI

Viewed 2725

I'm using .NET Core, VS Code, Linux.

To update a package, I manually change the version in the .csproj and then run dotnet restore.

But how can I tell which packages are outdated using the dotnet CLI?

3 Answers

I don't believe there's anything within vanilla .NET Core, but I've found a .NET Core global tool called NuKeeper which will do what you want:

# Install the global tool
$ dotnet tool install --global NuKeeper

# Run the tool to inspect a project in the current directory for updated dependencies
$ NuKeeper inspect

It can also perform the updates for you - see the link above for examples etc.

(I haven't used this before today, but I've just tried it on a sample project and it gave me the information I expected.)

Related