Soenneker.Managers.HashChecking 4.0.820

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Managers.HashChecking --version 4.0.820
                    
NuGet\Install-Package Soenneker.Managers.HashChecking -Version 4.0.820
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Managers.HashChecking" Version="4.0.820" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Managers.HashChecking" Version="4.0.820" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Managers.HashChecking" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Managers.HashChecking --version 4.0.820
                    
#r "nuget: Soenneker.Managers.HashChecking, 4.0.820"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Managers.HashChecking@4.0.820
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Managers.HashChecking&version=4.0.820
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Managers.HashChecking&version=4.0.820
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Managers.HashChecking

Handles hashing and verification of binaries.

Install

dotnet add package Soenneker.Managers.HashChecking

Quick start

using Soenneker.Managers.HashChecking.Registrars;
using Microsoft.Extensions.DependencyInjection;

var services = new ServiceCollection();
var result = services.AddHashCheckingManagerAsSingleton();

Adds IHashCheckingManager as a singleton service.

What you get

  • IHashCheckingManager — Handles hashing and verification of binaries.
  • HashCheckingManagerRegistrar — Handles hashing and verification of binaries.

API at a glance

API What it does Result / important behavior
IHashCheckingManager.CheckForHashDifferences(gitDirectory, filePath, hashFileName, cancellationToken) Checks whether the specified file's hash differs from the stored hash in the given Git directory and determines if an update is required. A value task that returns a tuple containing a boolean indicating whether an update is needed, and the new hash value if a difference is detected.
IHashCheckingManager.CheckForHashDifferencesOfDirectory(gitDirectory, inputDirectory, hashFileName, cancellationToken) Compares the hash of the specified input directory with the hash stored in the given Git directory to determine if an update is required. A tuple containing a Boolean value indicating whether the input directory needs to be updated (true if an update is required; otherwise, false), and a string representing the newly computed hash of the input directory.
HashCheckingManagerRegistrar.AddHashCheckingManagerAsSingleton(services) Adds IHashCheckingManager as a singleton service. The same service collection, so additional registrations can be chained.
HashCheckingManagerRegistrar.AddHashCheckingManagerAsScoped(services) Adds IHashCheckingManager as a scoped service. The same service collection, so additional registrations can be chained.

Important behavior

  • IHashCheckingManager.CheckForHashDifferences(gitDirectory, filePath, hashFileName, cancellationToken): If the hash file does not exist or the file cannot be read, the method may indicate that an update is needed. This method does not modify any files.
  • IHashCheckingManager.CheckForHashDifferencesOfDirectory(gitDirectory, inputDirectory, hashFileName, cancellationToken): This method performs a hash comparison between the input directory and the reference hash file in the Git directory. If the hashes differ, the method indicates that an update is needed and provides the new hash value. The operation is asynchronous and can be cancelled via the provided cancellation token.

Practical notes

  • Cancellation stops pending work; it does not undo work that has already completed.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Managers.HashChecking:

Package Downloads
Soenneker.Managers.Runners

Handles Runner operations and coordination

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.825 1,060 9/1/2026
4.0.824 1,148 8/31/2026
4.0.822 3,785 8/30/2026
4.0.821 43 8/30/2026
4.0.820 50 8/30/2026
4.0.819 3,361 8/29/2026
4.0.818 159 8/29/2026
4.0.817 42 8/29/2026
4.0.816 7,854 8/27/2026
4.0.815 3,850 8/22/2026
4.0.814 95 8/22/2026
4.0.813 402 8/22/2026
4.0.812 4,792 8/19/2026
4.0.811 1,296 8/18/2026
4.0.810 380 8/18/2026
4.0.809 5,410 8/13/2026
4.0.808 7,139 8/9/2026
4.0.807 3,157 8/8/2026
4.0.806 93 8/8/2026
4.0.805 1,705 8/8/2026
Loading failed

Update dependency Soenneker.Hashing.Blake3 to 4.0.112 (#1374)