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?
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?
Without installing any additional tool, I used this command:
dotnet list package --outdated
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.)
There is also the dotnet outdated global tool you can use.
https://github.com/jerriep/dotnet-outdated
dotnet tool install --global dotnet-outdated
dotnet outdated