OLT.Utility.S3 2.0.0

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

<img src="https://user-images.githubusercontent.com/1365728/127748628-47575d74-a2fb-4539-a31e-74d8b435fc21.png" width="30%" >

.NET Utility Library for S3

<code>OltS3Extenstions</code> provides simple extenstions for common S3 tasks

Nuget CI

Installation

Add the S3 Extensions source files to your .NET project or include it as a class library.

dotnet add package OLT.Utility.S3

Usage

Create Bucket Example

using OLT.Utility.S3

using (var s3Client = new AmazonS3Client(Credentials, Config))
{
    var bucketName = "MyStuff";
    var result = await s3Client.CreateBucketIfNotExistsAsync(bucketName);

    if (result.Success) 
    {
     // Code Here
    }
}

Get All Objects in path

using OLT.Utility.S3

using (var s3Client = new AmazonS3Client(Credentials, Config))
{
    var bucketName = "MyStuff";
    var rootPrefix = "/Test";
    var result = await s3Client.GetAllAsync(bucketName, rootPrefix, cancellationToken);

    if (result.Success) 
    {
     // Code Here
    }
}

Get Object

using OLT.Utility.S3

using (var s3Client = new AmazonS3Client(Credentials, Config))
{
    var bucketName = "MyStuff";
    var objectKey = "/Test/MyFile.txt";
    var result = await s3Client.GetAsync(bucketName, objectKey, cancellationToken);

    
    if (result.Success) 
    {
     // Code Here
    }
}
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 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
2.1.0 562 12/25/2025
2.0.0 763 9/18/2025
1.1.0-beta-0012 457 8/20/2025
1.1.0-beta-0008 218 8/20/2025
1.1.0-beta-0005 195 8/20/2025