Soenneker.GitHub.FileStore 3.0.149

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.149
                    
NuGet\Install-Package Soenneker.GitHub.FileStore -Version 3.0.149
                    
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.149" />
                    
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.149" />
                    
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.149
                    
#r "nuget: Soenneker.GitHub.FileStore, 3.0.149"
                    
#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.149
                    
#: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.149
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.GitHub.FileStore&version=3.0.149
                    
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
3.0.157 24 10/22/2025
3.0.156 121 10/16/2025
3.0.155 118 10/16/2025
3.0.154 153 10/15/2025
3.0.153 154 10/15/2025
3.0.152 153 10/15/2025
3.0.151 153 10/14/2025
3.0.150 162 10/6/2025
3.0.149 166 10/1/2025
3.0.148 162 10/1/2025
3.0.147 165 9/30/2025
3.0.146 162 9/29/2025
3.0.145 168 9/24/2025
3.0.144 146 9/24/2025
3.0.143 166 9/23/2025
3.0.142 148 9/23/2025
3.0.141 180 9/22/2025
3.0.140 287 9/18/2025
3.0.139 298 9/17/2025
3.0.138 288 9/17/2025
3.0.137 294 9/16/2025
3.0.136 293 9/16/2025
3.0.135 146 9/14/2025
3.0.134 167 9/10/2025
3.0.133 152 9/10/2025
3.0.132 161 9/9/2025
3.0.131 153 9/9/2025
3.0.130 166 9/9/2025
3.0.129 161 9/9/2025
3.0.128 150 9/8/2025
3.0.127 127 9/5/2025
3.0.126 176 9/4/2025
3.0.125 177 9/4/2025
3.0.124 177 9/3/2025
3.0.123 171 9/3/2025
3.0.122 172 9/3/2025
3.0.121 172 9/3/2025
3.0.120 186 8/31/2025
3.0.119 195 8/29/2025
3.0.118 176 8/25/2025
3.0.117 181 8/25/2025
3.0.116 107 8/22/2025
3.0.115 174 8/21/2025
3.0.114 162 8/19/2025
3.0.113 136 8/17/2025
3.0.112 139 8/16/2025
3.0.111 82 8/16/2025
3.0.110 109 8/15/2025
3.0.109 154 8/15/2025
3.0.108 154 8/12/2025
3.0.107 163 8/12/2025
3.0.106 164 8/12/2025
3.0.105 165 8/12/2025
3.0.104 163 8/11/2025
3.0.103 166 8/11/2025
3.0.102 155 8/11/2025
3.0.101 158 8/11/2025
3.0.100 158 8/11/2025
3.0.99 157 8/11/2025
3.0.98 121 8/10/2025
3.0.97 233 8/7/2025
3.0.96 246 8/5/2025
3.0.95 241 8/5/2025
3.0.94 243 8/5/2025
3.0.93 76 8/1/2025
3.0.92 130 8/1/2025
3.0.91 119 7/30/2025
3.0.90 118 7/30/2025
3.0.89 119 7/29/2025
3.0.88 137 7/28/2025
3.0.87 176 7/26/2025
3.0.86 320 7/25/2025
3.0.85 562 7/23/2025
3.0.84 555 7/22/2025
3.0.83 123 7/18/2025
3.0.82 175 7/14/2025
3.0.81 129 7/12/2025
3.0.80 181 7/9/2025
3.0.79 161 7/9/2025
3.0.78 164 7/9/2025
3.0.77 161 7/9/2025
3.0.76 169 7/8/2025
3.0.75 155 7/5/2025
3.0.74 89 7/5/2025
3.0.73 105 7/4/2025
3.0.72 156 7/4/2025
3.0.71 194 7/3/2025
3.0.70 183 7/2/2025
3.0.69 159 7/2/2025
3.0.68 177 7/2/2025
3.0.67 178 7/1/2025
3.0.66 189 6/28/2025
3.0.65 118 6/28/2025
3.0.64 115 6/28/2025
3.0.63 89 6/28/2025
3.0.62 95 6/28/2025
3.0.61 91 6/28/2025
3.0.60 97 6/27/2025
3.0.59 96 6/27/2025
3.0.58 157 6/26/2025
3.0.57 180 6/25/2025
3.0.56 168 6/25/2025
3.0.55 152 6/21/2025
3.0.54 264 6/18/2025
3.0.53 164 6/18/2025
3.0.52 163 6/18/2025
3.0.51 165 6/17/2025
3.0.49 163 6/17/2025
3.0.48 165 6/17/2025
3.0.47 324 6/13/2025
3.0.46 318 6/12/2025
3.0.45 312 6/11/2025
3.0.44 317 6/11/2025
3.0.43 290 6/11/2025
3.0.42 313 6/11/2025
3.0.41 316 6/11/2025
3.0.40 308 6/10/2025
3.0.39 320 6/10/2025
3.0.38 314 6/10/2025
3.0.37 306 6/10/2025
3.0.36 305 6/10/2025
3.0.35 293 6/9/2025
3.0.34 199 6/3/2025
3.0.33 191 6/3/2025
3.0.32 171 6/3/2025
3.0.31 176 6/2/2025
3.0.30 168 6/2/2025
3.0.29 174 6/2/2025
3.0.28 93 5/30/2025
3.0.27 174 5/28/2025
3.0.26 175 5/28/2025
3.0.25 169 5/28/2025
3.0.24 176 5/27/2025
3.0.23 177 5/27/2025
3.0.22 173 5/27/2025
3.0.21 172 5/27/2025
3.0.20 170 5/27/2025
3.0.19 169 5/27/2025
3.0.18 125 5/25/2025
3.0.17 127 5/25/2025
3.0.16 97 5/24/2025
3.0.15 105 5/23/2025
3.0.14 119 5/23/2025
3.0.13 127 5/23/2025
3.0.12 124 5/23/2025
3.0.11 136 5/23/2025
3.0.10 152 5/23/2025
3.0.9 147 5/23/2025
3.0.8 154 5/23/2025
3.0.7 171 5/23/2025
3.0.6 174 5/22/2025
3.0.5 168 5/22/2025
3.0.4 171 5/21/2025
3.0.3 169 5/21/2025
3.0.2 163 5/21/2025
3.0.1 167 5/21/2025