To update all packages, but keep the current major version: dotnet outdated --version-lock Major --upgrade