Soenneker.GitHub.FileStore 4.0.205

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 4.0.205
                    
NuGet\Install-Package Soenneker.GitHub.FileStore -Version 4.0.205
                    
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.205" />
                    
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.205" />
                    
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 4.0.205
                    
#r "nuget: Soenneker.GitHub.FileStore, 4.0.205"
                    
#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.205
                    
#: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.205
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.GitHub.FileStore&version=4.0.205
                    
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 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.

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.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 0 3/10/2026
4.0.382 0 3/10/2026
4.0.381 0 3/10/2026
4.0.380 4 3/9/2026
4.0.379 7 3/9/2026
4.0.378 31 3/9/2026
4.0.377 28 3/9/2026
4.0.376 32 3/7/2026
4.0.375 33 3/7/2026
4.0.374 38 3/7/2026
4.0.373 36 3/7/2026
4.0.372 34 3/6/2026
4.0.371 67 3/5/2026
4.0.370 69 3/5/2026
4.0.369 65 3/5/2026
4.0.205 431 12/10/2025
Loading failed