Soenneker.GitHub.FileStore 3.0.114

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.GitHub.FileStore --version 3.0.114
                    
NuGet\Install-Package Soenneker.GitHub.FileStore -Version 3.0.114
                    
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.114" />
                    
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.114" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.GitHub.FileStore" />
                    
Project file
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.114
                    
#r "nuget: Soenneker.GitHub.FileStore, 3.0.114"
                    
#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.114
                    
#: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.114
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.GitHub.FileStore&version=3.0.114
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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");
    }
}
Product 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.

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.190 0 11/19/2025
4.0.189 60 11/15/2025
4.0.188 132 11/14/2025
4.0.187 266 11/12/2025
4.0.186 259 11/11/2025
4.0.185 257 11/11/2025
4.0.184 261 11/11/2025
4.0.183 262 11/11/2025
4.0.182 220 11/10/2025
4.0.181 122 11/8/2025
4.0.180 136 11/7/2025
4.0.179 149 11/7/2025
4.0.178 153 11/7/2025
4.0.177 158 11/7/2025
4.0.176 169 11/6/2025
4.0.175 177 11/6/2025
4.0.174 169 11/5/2025
4.0.173 170 11/5/2025
4.0.172 169 11/4/2025
4.0.171 169 11/4/2025
4.0.170 171 11/4/2025
4.0.169 110 11/1/2025
4.0.168 97 11/1/2025
4.0.167 181 10/30/2025
4.0.166 172 10/30/2025
4.0.165 170 10/30/2025
4.0.164 170 10/30/2025
4.0.163 174 10/30/2025
4.0.162 170 10/30/2025
4.0.161 175 10/29/2025
3.0.160 175 10/29/2025
3.0.159 174 10/29/2025
3.0.158 130 10/25/2025
3.0.157 160 10/22/2025
3.0.156 159 10/16/2025
3.0.155 159 10/16/2025
3.0.154 164 10/15/2025
3.0.153 163 10/15/2025
3.0.152 164 10/15/2025
3.0.151 165 10/14/2025
3.0.150 171 10/6/2025
3.0.149 173 10/1/2025
3.0.148 169 10/1/2025
3.0.147 174 9/30/2025
3.0.146 167 9/29/2025
3.0.145 172 9/24/2025
3.0.144 150 9/24/2025
3.0.143 173 9/23/2025
3.0.142 153 9/23/2025
3.0.141 183 9/22/2025
3.0.140 292 9/18/2025
3.0.139 302 9/17/2025
3.0.138 297 9/17/2025
3.0.137 301 9/16/2025
3.0.136 296 9/16/2025
3.0.135 149 9/14/2025
3.0.134 171 9/10/2025
3.0.133 156 9/10/2025
3.0.132 165 9/9/2025
3.0.131 157 9/9/2025
3.0.130 171 9/9/2025
3.0.129 166 9/9/2025
3.0.128 156 9/8/2025
3.0.127 131 9/5/2025
3.0.126 180 9/4/2025
3.0.125 182 9/4/2025
3.0.124 182 9/3/2025
3.0.123 175 9/3/2025
3.0.122 176 9/3/2025
3.0.121 176 9/3/2025
3.0.120 193 8/31/2025
3.0.119 199 8/29/2025
3.0.118 181 8/25/2025
3.0.117 185 8/25/2025
3.0.116 111 8/22/2025
3.0.115 178 8/21/2025
3.0.114 166 8/19/2025
3.0.113 140 8/17/2025
3.0.112 143 8/16/2025
3.0.111 86 8/16/2025
3.0.110 114 8/15/2025
3.0.109 162 8/15/2025
3.0.108 160 8/12/2025
3.0.107 169 8/12/2025
3.0.106 168 8/12/2025
3.0.105 172 8/12/2025
3.0.104 170 8/11/2025
3.0.103 170 8/11/2025
3.0.102 159 8/11/2025
3.0.101 163 8/11/2025
3.0.100 162 8/11/2025
3.0.99 161 8/11/2025
3.0.98 127 8/10/2025
3.0.97 236 8/7/2025
3.0.96 253 8/5/2025
3.0.95 247 8/5/2025
3.0.94 249 8/5/2025
3.0.93 78 8/1/2025
3.0.92 133 8/1/2025
3.0.91 124 7/30/2025
3.0.90 121 7/30/2025
3.0.89 123 7/29/2025
3.0.88 141 7/28/2025
3.0.87 183 7/26/2025
3.0.86 328 7/25/2025
3.0.85 565 7/23/2025
3.0.84 562 7/22/2025
3.0.83 128 7/18/2025
3.0.82 179 7/14/2025
3.0.81 132 7/12/2025
3.0.80 184 7/9/2025
3.0.79 167 7/9/2025
3.0.78 169 7/9/2025
3.0.77 165 7/9/2025
3.0.76 173 7/8/2025
3.0.75 158 7/5/2025
3.0.74 93 7/5/2025
3.0.73 110 7/4/2025
3.0.72 163 7/4/2025
3.0.71 197 7/3/2025
3.0.70 189 7/2/2025
3.0.69 162 7/2/2025
3.0.68 181 7/2/2025
3.0.67 184 7/1/2025
3.0.66 193 6/28/2025
3.0.65 122 6/28/2025
3.0.64 119 6/28/2025
3.0.63 96 6/28/2025
3.0.62 99 6/28/2025
3.0.61 96 6/28/2025
3.0.60 100 6/27/2025
3.0.59 101 6/27/2025
3.0.58 161 6/26/2025
3.0.57 188 6/25/2025
3.0.56 173 6/25/2025
3.0.55 157 6/21/2025
3.0.54 269 6/18/2025
3.0.53 169 6/18/2025
3.0.52 168 6/18/2025
3.0.51 172 6/17/2025
3.0.49 168 6/17/2025
3.0.48 171 6/17/2025
3.0.47 328 6/13/2025
3.0.46 325 6/12/2025
3.0.45 316 6/11/2025
3.0.44 322 6/11/2025
3.0.43 294 6/11/2025
3.0.42 320 6/11/2025
3.0.41 320 6/11/2025
3.0.40 312 6/10/2025
3.0.39 323 6/10/2025
3.0.38 320 6/10/2025
3.0.37 310 6/10/2025
3.0.36 311 6/10/2025
3.0.35 299 6/9/2025
3.0.34 204 6/3/2025
3.0.33 198 6/3/2025
3.0.32 179 6/3/2025
3.0.31 180 6/2/2025
3.0.30 172 6/2/2025
3.0.29 179 6/2/2025
3.0.28 99 5/30/2025
3.0.27 178 5/28/2025
3.0.26 181 5/28/2025
3.0.25 173 5/28/2025
3.0.24 180 5/27/2025
3.0.23 180 5/27/2025
3.0.22 176 5/27/2025
3.0.21 176 5/27/2025
3.0.20 173 5/27/2025
3.0.19 173 5/27/2025
3.0.18 129 5/25/2025
3.0.17 131 5/25/2025
3.0.16 101 5/24/2025
3.0.15 109 5/23/2025
3.0.14 123 5/23/2025
3.0.13 131 5/23/2025
3.0.12 128 5/23/2025
3.0.11 142 5/23/2025
3.0.10 156 5/23/2025
3.0.9 151 5/23/2025
3.0.8 158 5/23/2025
3.0.7 175 5/23/2025
3.0.6 181 5/22/2025
3.0.5 173 5/22/2025
3.0.4 178 5/21/2025
3.0.3 175 5/21/2025
3.0.2 168 5/21/2025
3.0.1 172 5/21/2025