Soenneker.GitHub.FileStore 3.0.68

Prefix Reserved
dotnet add package Soenneker.GitHub.FileStore --version 3.0.68
                    
NuGet\Install-Package Soenneker.GitHub.FileStore -Version 3.0.68
                    
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.68" />
                    
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.68" />
                    
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.68
                    
#r "nuget: Soenneker.GitHub.FileStore, 3.0.68"
                    
#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.
#addin nuget:?package=Soenneker.GitHub.FileStore&version=3.0.68
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.GitHub.FileStore&version=3.0.68
                    
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.68 0 7/2/2025
3.0.67 2 7/1/2025
3.0.66 11 6/28/2025
3.0.65 10 6/28/2025
3.0.64 14 6/28/2025
3.0.63 12 6/28/2025
3.0.62 12 6/28/2025
3.0.61 11 6/28/2025
3.0.60 15 6/27/2025
3.0.59 27 6/27/2025
3.0.58 83 6/26/2025
3.0.57 103 6/25/2025
3.0.56 106 6/25/2025
3.0.55 93 6/21/2025
3.0.54 224 6/18/2025
3.0.53 125 6/18/2025
3.0.52 127 6/18/2025
3.0.51 138 6/17/2025
3.0.49 135 6/17/2025
3.0.48 126 6/17/2025
3.0.47 286 6/13/2025
3.0.46 277 6/12/2025
3.0.45 276 6/11/2025
3.0.44 277 6/11/2025
3.0.43 272 6/11/2025
3.0.42 275 6/11/2025
3.0.41 281 6/11/2025
3.0.40 271 6/10/2025
3.0.39 281 6/10/2025
3.0.38 277 6/10/2025
3.0.37 269 6/10/2025
3.0.36 277 6/10/2025
3.0.35 256 6/9/2025
3.0.34 158 6/3/2025
3.0.33 141 6/3/2025
3.0.32 134 6/3/2025
3.0.31 138 6/2/2025
3.0.30 131 6/2/2025
3.0.29 135 6/2/2025
3.0.28 58 5/30/2025
3.0.27 139 5/28/2025
3.0.26 131 5/28/2025
3.0.25 133 5/28/2025
3.0.24 138 5/27/2025
3.0.23 138 5/27/2025
3.0.22 134 5/27/2025
3.0.21 136 5/27/2025
3.0.20 135 5/27/2025
3.0.19 136 5/27/2025
3.0.18 89 5/25/2025
3.0.17 90 5/25/2025
3.0.16 61 5/24/2025
3.0.15 74 5/23/2025
3.0.14 81 5/23/2025
3.0.13 86 5/23/2025
3.0.12 88 5/23/2025
3.0.11 102 5/23/2025
3.0.10 115 5/23/2025
3.0.9 110 5/23/2025
3.0.8 118 5/23/2025
3.0.7 134 5/23/2025
3.0.6 140 5/22/2025
3.0.5 133 5/22/2025
3.0.4 134 5/21/2025
3.0.3 131 5/21/2025
3.0.2 134 5/21/2025
3.0.1 131 5/21/2025