PackCheck 2.2.0

dotnet tool install --global PackCheck --version 2.2.0                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local PackCheck --version 2.2.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=PackCheck&version=2.2.0                
nuke :add-package PackCheck --version 2.2.0                

PackCheck-Logo

PackCheck

NuGet Package License

Check for newer versions of installed NuGet Packages in your Terminal.


PackCheck is a dotnet tool for checking versions of installed NuGet packages in your .NET projects in your terminal. The check command (default) shows you all NuGet packages in a nice table with the current, latest stable and latest versions of each package. You can upgrade the .csproj (or Directory.Packages.props if you use Central Package Management) file with the upgrade command to your desired target versions. Whether to the latest stable or latest version, only a specific package or all at once.

Installation

You can install PackCheck as a dotnet tool via NuGet:

# Install
dotnet tool install --global PackCheck

# Update
dotnet tool update --global PackCheck

Usage

In your terminal cd into a .NET project or .NET solution and run:

packcheck

# or

packcheck c

# or

packcheck check

This should give you something like this:

PackCheck check example

After that you can upgrade the package versions in the .csproj file (or .csproj files in a solution, or the Directory.Packages.props file) to their corresponding stable versions by running:

This changes your .csproj file(s) or the Directory.Packages.props file!

packcheck upgrade

# or

packcheck u

To upgrade to the latest versions run:

packcheck upgrade --target latest

# or

packcheck u --target latest

For a dry-run, which outputs the .csproj file (or the Directory.Packages.props) into the terminal without actually changing the file, run:

packcheck upgrade --dry-run

# or

packcheck u --dry-run

To use interactive mode, where you can select each package you want to upgrade, run:

packcheck upgrade -i

# or

packcheck u -i

# or to upgrade to the latest versions

packcheck u --target latest -i

To select packages which should be checked or upgraded, run:

packcheck --filter "NuGet.Version" -f "Microsoft.Logging"

To exclude packages which should not be checked or upgraded, run:

packcheck --exclude "NuGet.Version" -x "Microsoft.Logging"

To format the output of the check command, use the --format option. Currently only group is supported, which groups the packages by patch, minor and major versions.

packcheck --format group

Configuration

You can configure PackCheck via a .packcheckrc.{json} file. Example:

{
  "CsProjFile": "path/to/Project.csproj",
  "SlnFile": "path/to/Project.sln",
  "CpmFile": "path/to/Directory.Packages.props",
  "Filter": ["NuGet.Version"],
  "Exclude": ["Microsoft.Logging"],
  "Format": "group"
}

For help run:

packcheck -h

Color Highlighting

Color Description
red Major (Breaking changes)
yellow Minor (New features, but backwards compatible)
green Patch (Backwards compatible bug fixes only)

LICENSE

MIT

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
2.2.0 81 11/19/2024
2.1.0 127 7/7/2024
2.0.0 154 5/20/2024
1.0.1 253 12/27/2023
1.0.0 148 12/26/2023
0.4.0 168 8/5/2023
0.3.2 206 4/21/2023
0.3.1 354 11/20/2022
0.3.0 410 10/15/2022
0.2.3 380 10/4/2022
0.2.2 428 9/21/2022
0.2.1 397 9/18/2022
0.2.0 458 9/18/2022
0.2.0-preview.1 102 9/2/2022
0.1.1 402 10/10/2021
0.1.0 408 10/10/2021
0.0.3 342 10/9/2021
0.0.2 418 5/27/2021
0.0.1 319 5/17/2021
0.0.1-rc.1 152 4/6/2021
0.0.1-alpha.4 167 3/18/2021
0.0.1-alpha.3 180 3/16/2021
0.0.1-alpha.2 140 3/16/2021
0.0.1-alpha.1 165 3/15/2021