Soenneker.GitHub.FileStore
4.0.205
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.GitHub.FileStore --version 4.0.205
NuGet\Install-Package Soenneker.GitHub.FileStore -Version 4.0.205
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.GitHub.FileStore" Version="4.0.205" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.GitHub.FileStore" Version="4.0.205" />
<PackageReference Include="Soenneker.GitHub.FileStore" />
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.GitHub.FileStore --version 4.0.205
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.GitHub.FileStore, 4.0.205"
#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.GitHub.FileStore@4.0.205
#: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.GitHub.FileStore&version=4.0.205
#tool nuget:?package=Soenneker.GitHub.FileStore&version=4.0.205
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.GitHub.FileStore
A high-level file system utility for GitHub repositories, built on the GitHub OpenAPI client. Supports reading, writing, deleting, listing, and checking file existence via the GitHub Contents API.
Features
- đ Read file content from a GitHub repository
- đ Write new files with commit messages and optional branch targeting
- â Delete files with SHA validation
- đ List directory contents
- â Check for file existence
- âī¸ Built on top of a typed OpenAPI GitHub client
Installation
dotnet add package Soenneker.GitHub.FileStore
Setup
builder.Services.AddGitHubFileStoreAsSingleton();
This will register all necessary dependencies, including the underlying GitHub OpenAPI client.
âšī¸ Note: The GitHub access token must be provided via configuration under the key: GitHub:Token.
Example Usage
public class MyService
{
private readonly IGitHubFileStore _store;
public MyService(IGitHubFileStore store)
{
_store = store;
}
public async Task Run()
{
string content = await _store.Read("owner", "repo", "README.md");
await _store.Create("owner", "repo", "newfile.txt", "Hello world!");
bool exists = await _store.Exists("owner", "repo", "README.md");
var files = await _store.List("owner", "repo", "docs");
await _store.Delete("owner", "repo", "oldfile.txt");
}
}
Related Packages
| 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
- Soenneker.GitHub.ClientUtil (>= 4.0.193)
- Soenneker.Utils.File (>= 4.0.2003)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.387 | 0 | 3/10/2026 |
| 4.0.386 | 0 | 3/10/2026 |
| 4.0.385 | 0 | 3/10/2026 |
| 4.0.384 | 0 | 3/10/2026 |
| 4.0.383 | 0 | 3/10/2026 |
| 4.0.382 | 0 | 3/10/2026 |
| 4.0.381 | 0 | 3/10/2026 |
| 4.0.380 | 4 | 3/9/2026 |
| 4.0.379 | 7 | 3/9/2026 |
| 4.0.378 | 31 | 3/9/2026 |
| 4.0.377 | 28 | 3/9/2026 |
| 4.0.376 | 32 | 3/7/2026 |
| 4.0.375 | 33 | 3/7/2026 |
| 4.0.374 | 38 | 3/7/2026 |
| 4.0.373 | 36 | 3/7/2026 |
| 4.0.372 | 34 | 3/6/2026 |
| 4.0.371 | 67 | 3/5/2026 |
| 4.0.370 | 69 | 3/5/2026 |
| 4.0.369 | 65 | 3/5/2026 |
| 4.0.205 | 431 | 12/10/2025 |
Loading failed