MrrHak.Extensions.FileProviders.S3FileProvider
1.0.0-beta.3
Prefix Reserved
See the version list below for details.
dotnet add package MrrHak.Extensions.FileProviders.S3FileProvider --version 1.0.0-beta.3
NuGet\Install-Package MrrHak.Extensions.FileProviders.S3FileProvider -Version 1.0.0-beta.3
<PackageReference Include="MrrHak.Extensions.FileProviders.S3FileProvider" Version="1.0.0-beta.3" />
paket add MrrHak.Extensions.FileProviders.S3FileProvider --version 1.0.0-beta.3
#r "nuget: MrrHak.Extensions.FileProviders.S3FileProvider, 1.0.0-beta.3"
// Install MrrHak.Extensions.FileProviders.S3FileProvider as a Cake Addin
#addin nuget:?package=MrrHak.Extensions.FileProviders.S3FileProvider&version=1.0.0-beta.3&prerelease
// Install MrrHak.Extensions.FileProviders.S3FileProvider as a Cake Tool
#tool nuget:?package=MrrHak.Extensions.FileProviders.S3FileProvider&version=1.0.0-beta.3&prerelease
🍃 S3 File Provider 🍃
This package constructs virtual file systems that implement IFileProvider and AWS S3 SDK to provide the functionality for serving static files from Amazon S3.
Where can I get it?
First, install NuGet. Then, install MrrHak.Extensions.FileProviders.S3FileProvider from the package manager console:
PM> NuGet\Install-Package MrrHak.Extensions.FileProviders.S3FileProvider
Or from the .NET CLI as:
dotnet add package MrrHak.Extensions.FileProviders.S3FileProvider
How do I get started?
Creating a S3FileProvider
instance is very simple:
var s3FileProvider = new S3FileProvider(amazonS3, bucketName);
Using S3 for serve as static files
First, configure S3FileProvider
with UseStaticFiles
, in the program/startup of your application:
var s3FileProvider = new S3FileProvider(amazonS3, bucketName);
var staticFilesOption = new StaticFileOptions(){ FileProvider = s3FileProvider};
app.UseStaticFiles(staticFilesOption);
Note
For Amazon S3 Service instance
var amazonS3 = new AmazonS3Client("AccessKeyId", "SecretAccessKey", Amazon.RegionEndpoint.APSoutheast1);
Or if you have already registered Amazon S3 services
var amazonS3 = app.Services.GetService<IAmazonS3>();
Publish NuGet Package
Upgrade version
To upgrade the version, use the following command to update the version in S3FileProvider/S3FileProvider.csproj
.
sed -i '' 's/{{VERSION}}/1.0.0/g' S3FileProvider/S3FileProvider.csproj
Start Package file for publishing with version 1.0.0
.
dotnet pack -c Release -o publish /p:Version=1.0.0
dotnet nuget push publish/MrrHak.Extensions.FileProviders.S3FileProvider.*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- AWSSDK.S3 (>= 3.7.307.17)
- Microsoft.Extensions.FileProviders.Abstractions (>= 8.0.0)
-
.NETStandard 2.0
- AWSSDK.S3 (>= 3.7.307.17)
- Microsoft.Extensions.FileProviders.Abstractions (>= 8.0.0)
-
net6.0
- AWSSDK.S3 (>= 3.7.307.17)
- Microsoft.Extensions.FileProviders.Abstractions (>= 8.0.0)
-
net7.0
- AWSSDK.S3 (>= 3.7.307.17)
- Microsoft.Extensions.FileProviders.Abstractions (>= 8.0.0)
-
net8.0
- AWSSDK.S3 (>= 3.7.307.17)
- Microsoft.Extensions.FileProviders.Abstractions (>= 8.0.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 |
---|---|---|
1.2.1 | 75 | 6/4/2024 |
1.2.0 | 191 | 5/30/2024 |
1.1.0 | 152 | 5/10/2024 |
1.0.1 | 95 | 5/4/2024 |
1.0.0 | 111 | 4/25/2024 |
1.0.0-beta.7 | 51 | 4/24/2024 |
1.0.0-beta.6 | 39 | 4/23/2024 |
1.0.0-beta.5 | 42 | 4/22/2024 |
1.0.0-beta.4 | 43 | 4/19/2024 |
1.0.0-beta.3 | 43 | 4/19/2024 |
1.0.0-beta.2 | 42 | 4/19/2024 |
1.0.0-beta.1 | 43 | 4/18/2024 |
1.0.0-beta.3
- Update README.md
1.0.0-beta.2
- Add github action publish
- Update README.md
- Update package metadata
1.0.0-beta.1
- Initial version