CommunityToolkit.Aspire.Minio.Client 13.1.1

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Minio.Client --version 13.1.1
                    
NuGet\Install-Package CommunityToolkit.Aspire.Minio.Client -Version 13.1.1
                    
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="CommunityToolkit.Aspire.Minio.Client" Version="13.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommunityToolkit.Aspire.Minio.Client" Version="13.1.1" />
                    
Directory.Packages.props
<PackageReference Include="CommunityToolkit.Aspire.Minio.Client" />
                    
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 CommunityToolkit.Aspire.Minio.Client --version 13.1.1
                    
#r "nuget: CommunityToolkit.Aspire.Minio.Client, 13.1.1"
                    
#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 CommunityToolkit.Aspire.Minio.Client@13.1.1
                    
#: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=CommunityToolkit.Aspire.Minio.Client&version=13.1.1
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Minio.Client&version=13.1.1
                    
Install as a Cake Tool

CommunityToolkit.Aspire.Minio.Client

Registers a MinIOClient in the DI container for connecting to MinIO.

Getting started

Prerequisites

  • MinIO or other S3-compatible storage.

Install the package

Install the .NET Aspire MinIO Client library with NuGet:

dotnet add package CommunityToolkit.Aspire.Minio.Client

Usage example

In the Program.cs file of your project, call the AddMinioClient extension method to register a MinioClient for use via the dependency injection container. The method takes a connection name parameter.

builder.AddMinioClient("minio");

Configuration

The .NET Aspire MinIO Client integration provides multiple options to configure the server connection based on the requirements and conventions of your project.

Use a connection string

When using a connection string from the ConnectionStrings configuration section, you can provide the name of the connection string when calling builder.AddMinioClient():

builder.AddMinioClient("minio");

And then the connection string will be retrieved from the ConnectionStrings configuration section:

{
    "ConnectionStrings": {
        "minio": "Endpoint=http://localhost:9001/;AccessKey=minioAdmin;SecretKey=minioAdmin"
    }
}

Use configuration providers

The .NET Aspire MinIO Client integration supports Microsoft.Extensions.Configuration. It loads the MinioClientSettings from configuration by using the Aspire:Minio:Client key. This key can be overriden by using the configurationSectionName method parameter. Example appsettings.json that configures some of the options:

{
  "Aspire": {
    "Minio": {
      "Client": {
        "Endpoint": "http://localhost:9001/",
        "AccessKey": "minioAdmin",
        "SecretKey": "minioAdmin"
      }
    }
  }
}

Use inline delegates

Also you can pass the Action<MinioClientSettings> configureSettings delegate to set up some or all the options inline, for example to set the API key from code:

builder.AddMinioClient("minio", configureSettings: settings => settings.SecretKey = "minioAdmin");

AppHost extensions

In your AppHost project, install the CommunityToolkit.Aspire.Hosting.Minio library with NuGet:

dotnet add package CommunityToolkit.Aspire.Hosting.Minio

Then, in the Program.cs file of AppHost, register a MinIO host and consume the connection using the following methods:

var minio = builder.AddMinioContainer("minio");

var myService = builder.AddProject<Projects.MyService>()
                       .WithReference(minio);

The WithReference method configures a connection in the MyService project named minio. In the Program.cs file of MyService, the MinIO connection can be consumed using:

builder.AddMinioClient("minio");

Then, in your service, inject IMinioClient and use it to interact with the MinIO or other S3 compatible API:

public class MyService(IMinioClient minioClient)
{
    // ...
}

Additional documentation

Feedback & contributing

https://github.com/CommunityToolkit/Aspire

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  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 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
13.1.2-beta.509 27 1/20/2026
13.1.2-beta.508 41 1/19/2026
13.1.2-beta.507 38 1/19/2026
13.1.2-beta.506 44 1/16/2026
13.1.2-beta.505 45 1/16/2026
13.1.2-beta.504 37 1/16/2026
13.1.1 207 1/16/2026
13.1.1-beta.502 44 1/16/2026
13.1.0 114 1/14/2026
13.1.0-beta.499 39 1/14/2026
13.0.1-beta.498 47 1/14/2026
13.0.1-beta.486 51 1/12/2026
13.0.1-beta.468 989 12/3/2025
13.0.1-beta.467 618 12/3/2025
13.0.0 3,173 11/25/2025
13.0.0-beta.462 137 11/25/2025
13.0.0-beta.456 146 11/23/2025
13.0.0-beta.454 99 11/23/2025
13.0.0-beta.453 112 11/22/2025
13.0.0-beta.450 120 11/22/2025
13.0.0-beta.448 117 11/22/2025
13.0.0-beta.444 363 11/17/2025
13.0.0-beta.443 417 11/17/2025
13.0.0-beta.440 119 11/15/2025
13.0.0-beta.439 542 11/12/2025
13.0.0-beta.438 233 11/12/2025
13.0.0-beta.436 231 11/12/2025
13.0.0-beta.435 238 11/11/2025
13.0.0-beta.433 159 11/10/2025
13.0.0-beta.432 160 11/10/2025
13.0.0-beta.431 156 11/6/2025
13.0.0-beta.430 149 11/6/2025
9.9.0 1,511 11/3/2025
9.9.0-beta.427 153 11/3/2025
9.8.1-beta.426 152 11/3/2025
9.8.1-beta.424 151 10/28/2025
9.8.1-beta.420 139 10/27/2025
9.8.1-beta.419 146 10/27/2025
9.8.1-beta.417 148 10/27/2025
9.8.1-beta.414 354 10/24/2025
9.8.1-beta.413 150 10/22/2025
9.8.1-beta.410 133 10/16/2025
9.8.1-beta.408 128 10/16/2025
9.8.1-beta.407 129 10/16/2025
9.8.1-beta.406 141 10/15/2025
9.8.0 1,552 9/26/2025
9.8.0-beta.405 139 10/15/2025
9.8.0-beta.404 140 10/13/2025
9.8.0-beta.402 144 9/29/2025
9.8.0-beta.401 140 9/29/2025
9.8.0-beta.399 136 9/26/2025
9.8.0-beta.398 143 9/25/2025
9.8.0-beta.397 142 9/25/2025
9.8.0-beta.395 146 9/24/2025
9.8.0-beta.394 149 9/23/2025
9.8.0-beta.393 145 9/23/2025
9.8.0-beta.392 147 9/23/2025
9.8.0-beta.389 266 9/18/2025
9.8.0-beta.388 273 9/16/2025
9.8.0-beta.386 218 9/15/2025
9.8.0-beta.385 221 9/15/2025
9.8.0-beta.384 73 9/13/2025
9.8.0-beta.376 153 9/8/2025
9.8.0-beta.375 77 9/6/2025
9.8.0-beta.373 147 9/5/2025
9.8.0-beta.372 151 9/4/2025
9.8.0-beta.370 143 9/2/2025
9.8.0-beta.364 141 9/1/2025
9.7.2 829 8/29/2025
9.7.2-beta.362 185 8/29/2025
9.7.2-beta.361 188 8/29/2025
9.7.2-beta.360 187 8/29/2025
9.7.2-beta.359 185 8/28/2025
9.7.2-beta.358 184 8/28/2025
9.7.2-beta.357 184 8/28/2025
9.7.1 250 8/27/2025
9.7.1-beta.355 188 8/27/2025
9.7.1-beta.354 190 8/27/2025
9.7.1-beta.353 194 8/27/2025
9.7.1-beta.352 190 8/27/2025
9.7.1-beta.351 191 8/27/2025
9.7.1-beta.348 150 8/14/2025
9.7.1-beta.344 162 8/10/2025
9.7.1-beta.343 220 8/8/2025
9.7.1-beta.342 220 8/7/2025
9.7.1-beta.341 223 8/6/2025
9.7.1-beta.340 201 8/5/2025
9.7.1-beta.339 211 8/5/2025
9.7.0 850 8/1/2025
9.7.0-beta.337 109 8/1/2025
9.7.0-beta.336 117 8/1/2025
9.7.0-beta.335 116 8/1/2025
9.7.0-beta.333 219 7/30/2025
9.5.1-beta.308 644 6/17/2025
9.5.1-beta.307 149 6/16/2025
9.5.1-beta.306 306 6/11/2025