Soenneker.GitHub.FileStore
3.0.93
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 3.0.93
NuGet\Install-Package Soenneker.GitHub.FileStore -Version 3.0.93
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="3.0.93" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.GitHub.FileStore" Version="3.0.93" />
<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 3.0.93
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.GitHub.FileStore, 3.0.93"
#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@3.0.93
#: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=3.0.93
#tool nuget:?package=Soenneker.GitHub.FileStore&version=3.0.93
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 | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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.
-
net9.0
- Soenneker.GitHub.ClientUtil (>= 3.0.81)
- Soenneker.Utils.File (>= 3.0.1959)
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 |
---|---|---|
3.0.118 | 20 | 8/25/2025 |
3.0.117 | 25 | 8/25/2025 |
3.0.116 | 28 | 8/22/2025 |
3.0.115 | 87 | 8/21/2025 |
3.0.114 | 83 | 8/19/2025 |
3.0.113 | 60 | 8/17/2025 |
3.0.112 | 62 | 8/16/2025 |
3.0.111 | 17 | 8/16/2025 |
3.0.110 | 32 | 8/15/2025 |
3.0.109 | 83 | 8/15/2025 |
3.0.108 | 113 | 8/12/2025 |
3.0.107 | 108 | 8/12/2025 |
3.0.106 | 111 | 8/12/2025 |
3.0.105 | 109 | 8/12/2025 |
3.0.104 | 120 | 8/11/2025 |
3.0.103 | 116 | 8/11/2025 |
3.0.102 | 112 | 8/11/2025 |
3.0.101 | 113 | 8/11/2025 |
3.0.100 | 110 | 8/11/2025 |
3.0.99 | 108 | 8/11/2025 |
3.0.98 | 70 | 8/10/2025 |
3.0.97 | 203 | 8/7/2025 |
3.0.96 | 211 | 8/5/2025 |
3.0.95 | 204 | 8/5/2025 |
3.0.94 | 208 | 8/5/2025 |
3.0.93 | 36 | 8/1/2025 |
3.0.92 | 92 | 8/1/2025 |
3.0.91 | 89 | 7/30/2025 |
3.0.90 | 91 | 7/30/2025 |
3.0.89 | 91 | 7/29/2025 |
3.0.88 | 93 | 7/28/2025 |
3.0.87 | 144 | 7/26/2025 |
3.0.86 | 271 | 7/25/2025 |
3.0.85 | 484 | 7/23/2025 |
3.0.84 | 487 | 7/22/2025 |
3.0.83 | 28 | 7/18/2025 |
3.0.82 | 153 | 7/14/2025 |
3.0.81 | 98 | 7/12/2025 |
3.0.80 | 152 | 7/9/2025 |
3.0.79 | 134 | 7/9/2025 |
3.0.78 | 136 | 7/9/2025 |
3.0.77 | 132 | 7/9/2025 |
3.0.76 | 141 | 7/8/2025 |
3.0.75 | 123 | 7/5/2025 |
3.0.74 | 60 | 7/5/2025 |
3.0.73 | 76 | 7/4/2025 |
3.0.72 | 127 | 7/4/2025 |
3.0.71 | 174 | 7/3/2025 |
3.0.70 | 156 | 7/2/2025 |
3.0.69 | 133 | 7/2/2025 |
3.0.68 | 140 | 7/2/2025 |
3.0.67 | 149 | 7/1/2025 |
3.0.66 | 162 | 6/28/2025 |
3.0.65 | 90 | 6/28/2025 |
3.0.64 | 90 | 6/28/2025 |
3.0.63 | 63 | 6/28/2025 |
3.0.62 | 67 | 6/28/2025 |
3.0.61 | 63 | 6/28/2025 |
3.0.60 | 69 | 6/27/2025 |
3.0.59 | 79 | 6/27/2025 |
3.0.58 | 130 | 6/26/2025 |
3.0.57 | 142 | 6/25/2025 |
3.0.56 | 141 | 6/25/2025 |
3.0.55 | 124 | 6/21/2025 |
3.0.54 | 235 | 6/18/2025 |
3.0.53 | 136 | 6/18/2025 |
3.0.52 | 135 | 6/18/2025 |
3.0.51 | 149 | 6/17/2025 |
3.0.49 | 146 | 6/17/2025 |
3.0.48 | 140 | 6/17/2025 |
3.0.47 | 299 | 6/13/2025 |
3.0.46 | 289 | 6/12/2025 |
3.0.45 | 287 | 6/11/2025 |
3.0.44 | 288 | 6/11/2025 |
3.0.43 | 283 | 6/11/2025 |
3.0.42 | 287 | 6/11/2025 |
3.0.41 | 291 | 6/11/2025 |
3.0.40 | 282 | 6/10/2025 |
3.0.39 | 291 | 6/10/2025 |
3.0.38 | 288 | 6/10/2025 |
3.0.37 | 280 | 6/10/2025 |
3.0.36 | 290 | 6/10/2025 |
3.0.35 | 267 | 6/9/2025 |
3.0.34 | 173 | 6/3/2025 |
3.0.33 | 152 | 6/3/2025 |
3.0.32 | 146 | 6/3/2025 |
3.0.31 | 151 | 6/2/2025 |
3.0.30 | 143 | 6/2/2025 |
3.0.29 | 147 | 6/2/2025 |
3.0.28 | 68 | 5/30/2025 |
3.0.27 | 149 | 5/28/2025 |
3.0.26 | 143 | 5/28/2025 |
3.0.25 | 145 | 5/28/2025 |
3.0.24 | 150 | 5/27/2025 |
3.0.23 | 151 | 5/27/2025 |
3.0.22 | 146 | 5/27/2025 |
3.0.21 | 147 | 5/27/2025 |
3.0.20 | 145 | 5/27/2025 |
3.0.19 | 145 | 5/27/2025 |
3.0.18 | 99 | 5/25/2025 |
3.0.17 | 100 | 5/25/2025 |
3.0.16 | 72 | 5/24/2025 |
3.0.15 | 87 | 5/23/2025 |
3.0.14 | 94 | 5/23/2025 |
3.0.13 | 96 | 5/23/2025 |
3.0.12 | 99 | 5/23/2025 |
3.0.11 | 111 | 5/23/2025 |
3.0.10 | 126 | 5/23/2025 |
3.0.9 | 121 | 5/23/2025 |
3.0.8 | 128 | 5/23/2025 |
3.0.7 | 143 | 5/23/2025 |
3.0.6 | 147 | 5/22/2025 |
3.0.5 | 142 | 5/22/2025 |
3.0.4 | 145 | 5/21/2025 |
3.0.3 | 145 | 5/21/2025 |
3.0.2 | 144 | 5/21/2025 |
3.0.1 | 142 | 5/21/2025 |