Soenneker.Utils.File.Download
4.0.1534
Prefix Reserved
dotnet add package Soenneker.Utils.File.Download --version 4.0.1534
NuGet\Install-Package Soenneker.Utils.File.Download -Version 4.0.1534
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="Soenneker.Utils.File.Download" Version="4.0.1534" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.File.Download" Version="4.0.1534" />
<PackageReference Include="Soenneker.Utils.File.Download" />
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 Soenneker.Utils.File.Download --version 4.0.1534
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Utils.File.Download, 4.0.1534"
#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 Soenneker.Utils.File.Download@4.0.1534
#: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=Soenneker.Utils.File.Download&version=4.0.1534
#tool nuget:?package=Soenneker.Utils.File.Download&version=4.0.1534
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Utils.File.Download
Provides a flexible utility for downloading files from specified URIs, with thread-safe concurrency and automatic file name conflict handling
Installation
dotnet add package Soenneker.Utils.File.Download
Usage
- Register
IFileDownloadUtilwithin DI (Program.cs).
public static async Task Main(string[] args)
{
...
builder.Services.AddFileDownloadUtilAsScoped();
}
- Inject
IFileDownloadUtil
Example:
public class TestClass
{
private readonly IFileDownloadUtil _util;
public TestClass(IFileDownloadUtil util)
{
_util = util;
}
public async ValueTask Download()
{
string directory = "path/to/save/files";
List<string> uris = new List<string>
{
"https://example.com/file1.jpg",
"https://example.com/file2.jpg",
"https://example.com/file3.jpg"
};
int maxConcurrentDownloads = 3;
List<string> downloadedFiles = await _util.DownloadFiles(directory, uris, maxConcurrentDownloads);
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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.
-
net10.0
- Polly (>= 8.6.6)
- Soenneker.Utils.Directory (>= 4.0.834)
- Soenneker.Utils.File (>= 4.0.2130)
- Soenneker.Utils.HttpClientCache (>= 4.0.1919)
- System.Threading.RateLimiting (>= 10.0.5)
NuGet packages (12)
Showing the top 5 NuGet packages that depend on Soenneker.Utils.File.Download:
| Package | Downloads |
|---|---|
|
Soenneker.Runners.ffprobe
Automatically updates the Soenneker.Libraries.ffprobe package |
|
|
Soenneker.Coinbase.Runners.OpenApiClients.Cdp
This runner executes a GitHub action that updates another project. It's not meant for consumption. |
|
|
Soenneker.DNSimple.Runners.OpenApiClient
Automatically updates the Soenneker.DNSimple.OpenApiClient package |
|
|
Soenneker.Loops.Runners.OpenApiClient
Automatically updates the Soenneker.Loops.OpenApiClient package |
|
|
Soenneker.GitHub.Runners.OpenApiClient
Automatically updates the Soenneker.GitHub.OpenApiClient package |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.1534 | 179 | 3/14/2026 |
| 4.0.1533 | 174 | 3/14/2026 |
| 4.0.1532 | 60 | 3/13/2026 |
| 4.0.1530 | 148 | 3/13/2026 |
| 4.0.1529 | 205 | 3/13/2026 |
| 4.0.1527 | 312 | 3/13/2026 |
| 4.0.1526 | 290 | 3/13/2026 |
| 4.0.1524 | 134 | 3/13/2026 |
| 4.0.1523 | 134 | 3/13/2026 |
| 4.0.1522 | 142 | 3/12/2026 |
| 4.0.1520 | 58 | 3/12/2026 |
| 4.0.1519 | 88 | 3/12/2026 |
| 4.0.1516 | 114 | 3/12/2026 |
| 4.0.1513 | 398 | 3/12/2026 |
| 4.0.1512 | 73 | 3/12/2026 |
| 4.0.1509 | 1,107 | 3/11/2026 |
| 4.0.1508 | 124 | 3/11/2026 |
| 4.0.1506 | 256 | 3/11/2026 |
| 4.0.1505 | 134 | 3/11/2026 |
| 4.0.1504 | 32 | 3/11/2026 |
Loading failed
Update dependency Soenneker.Utils.HttpClientCache to 4.0.1919 (#1852)