MintPlayer.FolderHasher.Abstractions
11.0.1
dotnet add package MintPlayer.FolderHasher.Abstractions --version 11.0.1
NuGet\Install-Package MintPlayer.FolderHasher.Abstractions -Version 11.0.1
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="MintPlayer.FolderHasher.Abstractions" Version="11.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MintPlayer.FolderHasher.Abstractions" Version="11.0.1" />
<PackageReference Include="MintPlayer.FolderHasher.Abstractions" />
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 MintPlayer.FolderHasher.Abstractions --version 11.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MintPlayer.FolderHasher.Abstractions, 11.0.1"
#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 MintPlayer.FolderHasher.Abstractions@11.0.1
#: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=MintPlayer.FolderHasher.Abstractions&version=11.0.1
#tool nuget:?package=MintPlayer.FolderHasher.Abstractions&version=11.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MintPlayer.FolderHasher.Abstractions
Abstractions package for MintPlayer.FolderHasher. Contains the IFolderHasher interface for computing deterministic folder hashes.
Installation
dotnet add package MintPlayer.FolderHasher.Abstractions
Usage
This package is typically used when you want to depend only on the abstraction (for dependency injection or testing) without taking a dependency on the concrete implementation.
using MintPlayer.FolderHasher.Abstractions;
public class MyService
{
private readonly IFolderHasher _folderHasher;
public MyService(IFolderHasher folderHasher)
{
_folderHasher = folderHasher;
}
public async Task<bool> HasFolderChangedAsync(string folder, string previousHash)
{
var currentHash = await _folderHasher.GetFolderHashAsync(folder);
return currentHash != previousHash;
}
}
API Reference
IFolderHasher
public interface IFolderHasher
{
/// <summary>
/// Computes a SHA256 hash of the folder contents.
/// </summary>
Task<string> GetFolderHashAsync(string folder);
/// <summary>
/// Computes a SHA256 hash of the folder contents, excluding folders matching the specified patterns.
/// </summary>
Task<string> GetFolderHashAsync(string folder, IEnumerable<string> ignoreFolders);
/// <summary>
/// Computes a hash of the folder contents using the specified algorithm.
/// </summary>
Task<string> GetFolderHashAsync(string folder, IEnumerable<string> ignoreFolders, HashAlgorithm algorithm);
}
Related Packages
- MintPlayer.FolderHasher - Concrete implementation
- MintPlayer.FolderHasher.Targets - MSBuild task that computes a folder hash at build time
License
MIT
| Product | Versions 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. net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
-
net11.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MintPlayer.FolderHasher.Abstractions:
| Package | Downloads |
|---|---|
|
MintPlayer.FolderHasher
This package allows you to compute a hash for a folder. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.1 | 104 | 11/15/2026 |
| 11.0.0 | 111 | 11/15/2026 |
| 11.0.0-rc.1 | 92 | 9/17/2026 |
| 10.0.1 | 157 | 8/27/2026 |
| 10.0.0 | 380 | 11/11/2025 |
| 10.0.0-rc.2 | 283 | 11/10/2025 |
| 10.0.0-rc.1 | 265 | 9/19/2025 |
| 9.0.0 | 220 | 11/13/2024 |
| 8.0.1 | 251 | 6/24/2024 |
| 8.0.0 | 237 | 6/24/2024 |