Find Outdated NuGet Packages
The dotnet outdated CLI tool can find, and if required update, out of date NuGet packages, and will respect pinned packages.
To globally install the tool:
dotnet tool install --global dotnet-outdated
Then to find out of date packages:
dotnet-outdated
To upgrade out of date packages:
dotnet-outdated -u
And to respect version locking:
dotnet-outdated -u --version-lock Major