ACSync.Core
1.0.1
dotnet add package ACSync.Core --version 1.0.1
NuGet\Install-Package ACSync.Core -Version 1.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="ACSync.Core" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ACSync.Core" Version="1.0.1" />
<PackageReference Include="ACSync.Core" />
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 ACSync.Core --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ACSync.Core, 1.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 ACSync.Core@1.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=ACSync.Core&version=1.0.1
#tool nuget:?package=ACSync.Core&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ACSync.Core
Incremental update/patch library for binary files.
Features
- SHA256-based file comparison for accurate change detection
- Multi-threaded directory scanning
- 7z (LZMA2) compression via 7-Zip.CommandLine
- Patch creation (delta between old and new version)
- Patch application with file deletion and extension exclusion support
API Overview
// Scan directory and create manifest
var manifest = ManifestService.ScanDirectory(@"D:\app\v2.0");
ManifestService.SaveToFile(manifest, @"D:\app\v2.0\acsync_manifest.json");
// Compare manifests and create patch
SyncPatch.CreatePatch(@"D:\app\v1.0", @"D:\app\v2.0");
// Apply patch with exclusions
SyncPatch.ApplyPatch(@"D:\app\user", excludeExtensions: new[] { ".json", ".ini" });
Key Types
ManifestService
| Method | Description |
|---|---|
ScanDirectory(path) |
Scan directory, compute SHA256 for all files |
SaveToFile(manifest, path) |
Save manifest as JSON |
LoadFromFile(path) |
Load manifest from JSON |
LoadFromDirectory(path) |
Load manifest from directory (looks for acsync_manifest.json) |
Diff(old, new) |
Compare two manifests, returns (changed, deleted) |
SyncPatch
| Method | Description |
|---|---|
CreatePatch(oldPath, newPath, outputPath?, sevenZipPath?) |
Create acsync_patch.7z from old→new delta |
ApplyPatch(targetPath, patchFile?, excludeExtensions?, sevenZipPath?) |
Apply patch to target directory |
sevenZipPath— Optional. Defaults toAppContext.BaseDirectory/7za.exe(application root directory).
Dependencies
- .NET 10.0+
7-Zip.CommandLine(7za.exe required at runtime)
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- 7-Zip.CommandLine (>= 25.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.