Soenneker.GitHub.FileStore
4.0.389
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.389
NuGet\Install-Package Soenneker.GitHub.FileStore -Version 4.0.389
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.389" />
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.389" />
<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.389
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.GitHub.FileStore, 4.0.389"
#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.389
#: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.389
#tool nuget:?package=Soenneker.GitHub.FileStore&version=4.0.389
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.371)
- Soenneker.Utils.File (>= 4.0.2096)
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.390 | 0 | 3/10/2026 |
| 4.0.389 | 0 | 3/10/2026 |
| 4.0.388 | 0 | 3/10/2026 |
| 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 | 22 | 3/10/2026 |
| 4.0.382 | 24 | 3/10/2026 |
| 4.0.381 | 31 | 3/10/2026 |
| 4.0.380 | 37 | 3/9/2026 |
| 4.0.379 | 32 | 3/9/2026 |
| 4.0.378 | 40 | 3/9/2026 |
| 4.0.377 | 35 | 3/9/2026 |
| 4.0.376 | 35 | 3/7/2026 |
| 4.0.375 | 36 | 3/7/2026 |
| 4.0.374 | 41 | 3/7/2026 |
| 4.0.373 | 39 | 3/7/2026 |
| 4.0.372 | 38 | 3/6/2026 |
| 4.0.371 | 70 | 3/5/2026 |
Loading failed