CommunityToolkit.Aspire.Minio.Client
9.9.0-beta.427
Prefix Reserved
dotnet add package CommunityToolkit.Aspire.Minio.Client --version 9.9.0-beta.427
NuGet\Install-Package CommunityToolkit.Aspire.Minio.Client -Version 9.9.0-beta.427
<PackageReference Include="CommunityToolkit.Aspire.Minio.Client" Version="9.9.0-beta.427" />
<PackageVersion Include="CommunityToolkit.Aspire.Minio.Client" Version="9.9.0-beta.427" />
<PackageReference Include="CommunityToolkit.Aspire.Minio.Client" />
paket add CommunityToolkit.Aspire.Minio.Client --version 9.9.0-beta.427
#r "nuget: CommunityToolkit.Aspire.Minio.Client, 9.9.0-beta.427"
#:package CommunityToolkit.Aspire.Minio.Client@9.9.0-beta.427
#addin nuget:?package=CommunityToolkit.Aspire.Minio.Client&version=9.9.0-beta.427&prerelease
#tool nuget:?package=CommunityToolkit.Aspire.Minio.Client&version=9.9.0-beta.427&prerelease
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
- https://github.com/minio/minio-dotnet
- https://min.io/docs/minio/linux/developers/dotnet/minio-dotnet.html
Feedback & contributing
| Product | Versions 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 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. |
-
net8.0
- Microsoft.Extensions.Configuration.Binder (>= 9.0.9)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.9)
- Minio (>= 6.0.5)
- OpenTelemetry.Extensions.Hosting (>= 1.12.0)
-
net9.0
- Microsoft.Extensions.Configuration.Binder (>= 9.0.9)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.9)
- Minio (>= 6.0.5)
- OpenTelemetry.Extensions.Hosting (>= 1.12.0)
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 |
|---|---|---|
| 9.9.0-beta.427 | 0 | 11/3/2025 |
| 9.8.1-beta.426 | 0 | 11/3/2025 |
| 9.8.1-beta.424 | 114 | 10/28/2025 |
| 9.8.1-beta.420 | 113 | 10/27/2025 |
| 9.8.1-beta.419 | 113 | 10/27/2025 |
| 9.8.1-beta.417 | 123 | 10/27/2025 |
| 9.8.1-beta.414 | 133 | 10/24/2025 |
| 9.8.1-beta.413 | 129 | 10/22/2025 |
| 9.8.1-beta.410 | 117 | 10/16/2025 |
| 9.8.1-beta.408 | 111 | 10/16/2025 |
| 9.8.1-beta.407 | 112 | 10/16/2025 |
| 9.8.1-beta.406 | 123 | 10/15/2025 |
| 9.8.0 | 986 | 9/26/2025 |
| 9.8.0-beta.405 | 118 | 10/15/2025 |
| 9.8.0-beta.404 | 118 | 10/13/2025 |
| 9.8.0-beta.402 | 125 | 9/29/2025 |
| 9.8.0-beta.401 | 115 | 9/29/2025 |
| 9.8.0-beta.399 | 119 | 9/26/2025 |
| 9.8.0-beta.398 | 123 | 9/25/2025 |
| 9.8.0-beta.397 | 124 | 9/25/2025 |
| 9.8.0-beta.395 | 124 | 9/24/2025 |
| 9.8.0-beta.394 | 127 | 9/23/2025 |
| 9.8.0-beta.393 | 125 | 9/23/2025 |
| 9.8.0-beta.392 | 129 | 9/23/2025 |
| 9.8.0-beta.389 | 250 | 9/18/2025 |
| 9.8.0-beta.388 | 258 | 9/16/2025 |
| 9.8.0-beta.386 | 205 | 9/15/2025 |
| 9.8.0-beta.385 | 203 | 9/15/2025 |
| 9.8.0-beta.384 | 50 | 9/13/2025 |
| 9.8.0-beta.376 | 130 | 9/8/2025 |
| 9.8.0-beta.375 | 63 | 9/6/2025 |
| 9.8.0-beta.373 | 134 | 9/5/2025 |
| 9.8.0-beta.372 | 136 | 9/4/2025 |
| 9.8.0-beta.370 | 125 | 9/2/2025 |
| 9.8.0-beta.364 | 120 | 9/1/2025 |
| 9.7.2 | 625 | 8/29/2025 |
| 9.7.2-beta.362 | 165 | 8/29/2025 |
| 9.7.2-beta.361 | 171 | 8/29/2025 |
| 9.7.2-beta.360 | 171 | 8/29/2025 |
| 9.7.2-beta.359 | 172 | 8/28/2025 |
| 9.7.2-beta.358 | 170 | 8/28/2025 |
| 9.7.2-beta.357 | 169 | 8/28/2025 |
| 9.7.1 | 223 | 8/27/2025 |
| 9.7.1-beta.355 | 173 | 8/27/2025 |
| 9.7.1-beta.354 | 173 | 8/27/2025 |
| 9.7.1-beta.353 | 172 | 8/27/2025 |
| 9.7.1-beta.352 | 170 | 8/27/2025 |
| 9.7.1-beta.351 | 172 | 8/27/2025 |
| 9.7.1-beta.348 | 136 | 8/14/2025 |
| 9.7.1-beta.344 | 130 | 8/10/2025 |
| 9.7.1-beta.343 | 203 | 8/8/2025 |
| 9.7.1-beta.342 | 205 | 8/7/2025 |
| 9.7.1-beta.341 | 206 | 8/6/2025 |
| 9.7.1-beta.340 | 185 | 8/5/2025 |
| 9.7.1-beta.339 | 187 | 8/5/2025 |
| 9.7.0 | 811 | 8/1/2025 |
| 9.7.0-beta.337 | 89 | 8/1/2025 |
| 9.7.0-beta.336 | 99 | 8/1/2025 |
| 9.7.0-beta.335 | 97 | 8/1/2025 |
| 9.7.0-beta.333 | 201 | 7/30/2025 |
| 9.5.1-beta.308 | 621 | 6/17/2025 |
| 9.5.1-beta.307 | 134 | 6/16/2025 |
| 9.5.1-beta.306 | 291 | 6/11/2025 |