This is the multi-page printable view of this section. .
.NET Quickstart Guide
MinIO SDK for .NET
SILO implements the S3-compatible server contract, so applications can use the upstream MinIO .NET SDK without a SILO-specific client fork. This guide uses the stable NuGet package and environment variables for credentials.
SDK release requirements and APIs can change independently of SILO. Check the current NuGet package and SDK releases before choosing a version for your application.
Install the package
From an existing .NET project, add the Minio package:
Configure the connection
Set the endpoint and credentials for your SILO deployment. Keep secrets outside source control.
S3_ENDPOINT is a host and optional port, without an http:// or https:// prefix. Set S3_USE_SSL=true when the endpoint serves TLS.
Create a bucket and upload an object
Create hello.txt, then run the project:
For ASP.NET Core dependency injection and additional operations, use the SDK’s current README. The maintained repository also contains simple and host-based example projects; review their target branch and package version before copying code into a pinned application.
Production checklist
- Use TLS and verify the server certificate.
- Load credentials from a secret manager or protected environment, not source code.
- Grant the application only the bucket and object permissions it needs.
- Pin and test the SDK version as part of the application’s dependency lifecycle.
- Handle SDK exceptions, request cancellation, retries, and multipart-upload cleanup explicitly.
See Identity and Access Management for server-side policy configuration.