DownloadArchive 1.0.30

dotnet add package DownloadArchive --version 1.0.30
                    
NuGet\Install-Package DownloadArchive -Version 1.0.30
                    
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="DownloadArchive" Version="1.0.30" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DownloadArchive" Version="1.0.30" />
                    
Directory.Packages.props
<PackageReference Include="DownloadArchive" />
                    
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 DownloadArchive --version 1.0.30
                    
#r "nuget: DownloadArchive, 1.0.30"
                    
#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 DownloadArchive@1.0.30
                    
#: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=DownloadArchive&version=1.0.30
                    
Install as a Cake Addin
#tool nuget:?package=DownloadArchive&version=1.0.30
                    
Install as a Cake Tool

DownlaodArchive

This is a Nuget package a which contains custom MSBuild Tasks that allow downloading archives to build and publish directories.

The following example will download geckodriver to output gecko-driver-0.34.0/(linux-x64|osx-arm64|win-x64)/geckodriver(.exe)? depending on RuntimeIdentifier:

<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <OutputType>Exe</OutputType>
    </PropertyGroup>

    <ItemGroup>
        <DownloadArchive
                Include="gecko-driver-0.34.0"
                Visible="false"
                RID-linux-x64="https://github.com/mozilla/geckodriver/releases/download/v0.34.0/geckodriver-v0.34.0-linux64.tar.gz"
                RID-osx-arm64="https://github.com/mozilla/geckodriver/releases/download/v0.34.0/geckodriver-v0.34.0-macos-aarch64.tar.gz"
                RID-win-x64="https://github.com/mozilla/geckodriver/releases/download/v0.34.0/geckodriver-v0.34.0-win32.zip"
        />
    </ItemGroup>

    <ItemGroup>
      <PackageReference Include="DownloadArchive" Version="1.0.7" />
    </ItemGroup>
</Project>

Caching

Downloaded archives and their decompressed content are cached, so repeated builds do not download the same archive again. The cache lives in nuget-download-archive inside the temp directory, so it is cleaned up by the system and does not grow forever.

Interrupted builds

Every cached archive, decompressed archive and generated output directory has a marker file (.<name>.complete) next to it, which is written only after everything is in place and holds the number of files it stands for, not counting markers themselves. Content is used only when its marker is there and the file count still matches, so a leftover of an interrupted build, or content that lost files afterwards to a temp cleanup, is downloaded, decompressed or copied again.

The downloaded archive and the copy into the build output are written beside their destination and moved onto it as a last step, so a reader never meets them half written.

Concurrent builds

Cache entries are guarded by lock files, one for the download and one for the decompressed copy, so builds running at the same time share the work instead of repeating or corrupting it: the first to arrive downloads, the rest wait and then use what it left.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on DownloadArchive:

Package Downloads
ChromeForTesting

Chrome for Testing binary distributed as nuget package. It has all you need to start Chrome on server/local without any installation on system or downloading in runtime, it works even in scratch Docker image.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.30 425 8/31/2026
1.0.29 22,059 10/9/2025
1.0.28 283 10/8/2025
1.0.27 324 10/8/2025
1.0.26 318 10/8/2025
1.0.25 310 10/8/2025
1.0.24 286 10/8/2025
1.0.23 304 10/8/2025
1.0.22 319 10/8/2025
1.0.21 276 10/8/2025
1.0.20 297 10/7/2025
1.0.19 240 10/7/2025
1.0.18 232 10/7/2025
1.0.17 539 10/6/2025
1.0.16 549 10/6/2025
1.0.15 12,357 1/23/2025
1.0.14 25,316 5/28/2024
1.0.13 316 5/28/2024
1.0.12 375 5/27/2024
1.0.11 238 5/27/2024
Loading failed