Cake.7zip 5.0.0

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

Cake.7zip

standard-readme compliant Contributor Covenant Build Codecov Report NuGet package All Contributors

Makes 7zip available as a tool in cake

Table of Contents

Install

#tool nuget:?package=7-Zip.CommandLine
#addin nuget:?package=Cake.7zip

Usage

See also the local documentation and api

Adding files

#tool nuget:?package=7-Zip.CommandLine
#addin nuget:?package=Cake.7zip

SevenZip(s => s
  .InAddMode()
  .WithArchive(File("fluent.zip"))
  .WithArchiveType(SwitchArchiveType.Zip)
  .WithFiles(File("a.txt"), File("b.txt"))
  .WithVolume(700, VolumeUnit.Megabytes)
  .WithCompressionMethodLevel(9));

Extracting files

#tool nuget:?package=7-Zip.CommandLine
#addin nuget:?package=Cake.7zip

SevenZip(s => s
  .InExtractMode()
  .WithArchive(File("path/to/file.zip"))
  .WithArchiveType(SwitchArchiveType.Zip)
  .WithOutputDirectory("some/other/directory"));

Discussion

If you have questions, search for an existing one, or create a new discussion on the Cake GitHub repository, using the extension-q-a category.

Join in the discussion on the Cake repository

Maintainer

Nils Andresen @nils-a

Contributing

Cake.7zip follows the Contributor Covenant Code of Conduct.

We accept Pull Requests.

Small note: If editing the Readme, please conform to the standard-readme specification.

This project follows the all-contributors specification. Contributions of any kind welcome!

Contributors

Thanks goes to these wonderful people (emoji key):

<table> <tbody> <tr> <td align="center" valign="top" width="14.28%"><a href="http://www.nils-andresen.de/"><img src="https://avatars3.githubusercontent.com/u/349188?v=4?s=100" width="100px;" alt="Nils Andresen"/><br /><sub><b>Nils Andresen</b></sub></a><br /><a href="https://github.com/cake-contrib/Cake.7zip/commits?author=nils-a" title="Code">💻</a> <a href="https://github.com/cake-contrib/Cake.7zip/commits?author=nils-a" title="Documentation">📖</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/DiDoHH"><img src="https://avatars.githubusercontent.com/u/45682415?v=4?s=100" width="100px;" alt="DiDoHH"/><br /><sub><b>DiDoHH</b></sub></a><br /><a href="https://github.com/cake-contrib/Cake.7zip/commits?author=DiDoHH" title="Documentation">📖</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/stehlih"><img src="https://avatars.githubusercontent.com/u/43820014?v=4?s=100" width="100px;" alt="Heiko Stehli"/><br /><sub><b>Heiko Stehli</b></sub></a><br /><a href="https://github.com/cake-contrib/Cake.7zip/commits?author=stehlih" title="Code">💻</a></td> </tr> </tbody> </table>

License

MIT License © Nils Andresen

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.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

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
5.0.0 87,717 12/16/2024
4.1.0 57,890 1/17/2024
4.0.0 1,707 11/21/2023
3.0.0 31,788 11/17/2022
2.0.0 55,659 12/7/2021
1.0.4 13,529 9/25/2021
1.0.3 41,312 4/10/2021
1.0.2 1,792 3/11/2021
1.0.1 83,015 2/8/2021
1.0.0 718 2/8/2021
0.7.1 17,103 10/7/2020
0.7.0 1,503 9/8/2020
0.6.0 828 8/18/2020
0.5.1 782 8/8/2020
0.5.0 722 8/3/2020
0.4.0 977 7/2/2020
0.2.1 853 6/21/2020
0.2.0 738 6/19/2020
0.1.0 744 6/19/2020