7-Zip libraries [ x86 + x64 ] for unmanaged C/C++,.. and managed .NET, Java,.. File archiver - www.7-zip.org, and other related tools. This package was created specially for https://github.com/3F/vsSolutionBuildEvent and for other related purposes. Build and Use it freely! πŸ“‘ https://github.com/3F/7z.Libs # Preferences: βš™ `NG7zLibsCopyToOutput` To prevent copying into output path. βš™ `NG7zLibsDir32bit` Custom folder name for 32-bit modules. βš™ `NG7zLibsResolvePublish` Resolve the Publish target. βš™ `NG7zLibsLimitToPlatform` Limit copying x86/x64 modules to specific platform. * πŸ“¦ For working with the solution level or for manual adding 7z.Libs etc., use GetNuTool https://github.com/3F/GetNuTool * 🍰 7z.Libs is possible to use in managed projects (.NET, etc.) through Conari engine https://github.com/3F/Conari or SevenZipSharp, and so on. # This package is unofficial and provides the following libraries and tools: * 7za.dll ~(284 KB - 403 KB) Compact version of 7z.dll library for 7z archives. * 7zxa.dll ~(159 KB - 211 KB) Compact version of 7z.dll library for extracting from 7z archives. * 7z.dll ~(1.23 MB - 1.80 MB) Full 7-Zip engine for work with all available formats. * hMSBuild.bat ~(18 KB) hMSBuild to build projects with msbuild tools+ * netfx4sdk.cmd ~(6 KB) netfx4sdk to build projects on legacy platforms. * gnt.bat ~(8 KB) GetNuTool to service NuGet packages including this. * vsSolutionBuildEvent.x.y.z.bat ~(8 KB) vsSolutionBuildEvent bat version for customizing or editing build scripts including 7z.Libs. # Supported formats * Packing / Unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM * Unpacking only: AR, ARJ, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT, HFS, IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, RPM, SquashFS, UDF, UEFI, VDI, VHD, VMDK, WIM, XAR and Z. # 7-Zip License 7-Zip is free software distributed under the GNU LGPL (except for unRar code). Read accompanying files `./bin/License.txt` and `./bin/License.7za-7zxa.txt` or http://www.7-zip.org/ for more information about license. # 7z.Libs and tools licenses 7z.Libs (automated build and package) is available under the MIT License (MIT). 7z.Libs and its various packages may include or reference various software components. ⚠ You must follow their accompanying licenses depending on their use. `./License.txt` and `./3rd-party-NOTICES.txt` are attached. === gnt 7z.Libs/25.01 https://github.com/3F/GetNuTool 7z.Libs 25.01.51933+ed242a6 https://github.com/3F/7z.Libs :: generated by a vsSolutionBuildEvent 1.16.1.32816


Keywords
7-Zip, 7z, 7zip, BZIP2, CAB, FAT, GZIP, HFS, ISO, LZMA, MSI, NSIS, NTFS, RAR, TAR, UDF, UEFI, VDI, VHD, WIM, XZ, ZIP, archiver, file-archiver, native, automation, build, distribution, getnutool, hmsbuild, nuget, packages, sevenzip, vssbe, vssolutionbuildevent
License
MIT
Install
Install-Package 7z.Libs -Version 24.9.0

Documentation

πŸ“¦πŸ“¦ πŸ—œ nuget.org/packages/7z.Libs

An automated build of the 7z.Libs NuGet packages.

Build status License NuGet

gnt 7z.Libs [?]

Build and use from source:

git clone https://github.com/3F/7z.Libs.git src
cd src
build & cd bin\Release\raw

Note: the build script is configured to use .version by default. Use --target-version to build specific version, e.g.:

build --target-version 24.08.0

Why 7z.Libs

nuget.org/packages/7z.Libs is available for everyone starting from 2015. It was designed and distributed specially for vsSolutionBuildEvent and for other related purposes.

7z.Libs repository does not include anything from 7-zip (www.7-zip.org) and only represents a fully automated distribution of the 7-zip libraries.

Everything was automated using the following tools:

Preferences

MSBuild Property / Environment variable native C/C+ .NET Default value Description
NG7zLibsCopyToOutput βœ” βœ” true To prevent copying into output path, set as false
NG7zLibsDir32bit βœ” βœ” x86 Custom folder name for 32-bit modules if NG7zLibsCopyToOutput=true
NG7zLibsCopyLicense βœ” βœ” true Provide .txt licenses along with modules if NG7zLibsCopyToOutput=true
NG7zLibsResolvePublish - βœ” true Resolve the Publish target
NG7zLibsRootPkg βœ” βœ” - Root path to the 7z.Libs package. E.g. path to tools like $(NG7zLibsRootPkg)tools\
NG7zLibsLimitToPlatform βœ” - legacy Limit copying x86/x64 modules to specific platform. Values: legacy, true, false
NG7zLibsLimitToPlatform - βœ” false Limit copying x86/x64 modules to specific platform. Relies on PlatformTarget

7z.Libs is possible to use in managed projects (.NET, etc.) through Conari engine https://github.com/3F/Conari or SevenZipSharp, and so on.

.NET 7-zip

Most progressive use of 7-zip in .NET is possible through Conari

As for project LuNari, it was planned in the past as N7z

However, I have the priority to review this tasks not earlier than after IeXod -> MvsSln projects. Read more about on reddit and Follow the news;

License

7z.Libs repository is available under the MIT License (MIT)

Copyright (c) 2015-2024  Denis Kuzmin <x-3F@outlook.com> github/3F

γ€Œ ❀ 」

7z.Libs contributors: https://github.com/3F/7z.Libs/graphs/contributors

7z.Libs and its various packages may include or reference various software components.

⚠ You must follow their accompanying licenses depending on their use. 3rd-party-NOTICES

Package structure

β”œβ”€β”€β”€bin
β”‚   β”œβ”€β”€β”€x64
β”‚   └───x86
β”œβ”€β”€β”€build
β”‚   β”œβ”€β”€β”€native
β”‚   β”œβ”€β”€β”€net
β”‚   β”œβ”€β”€β”€netcoreapp
β”‚   └───netstandard
β”œβ”€β”€β”€lib
β”‚   β”œβ”€β”€β”€net
β”‚   β”œβ”€β”€β”€netcoreapp
β”‚   └───netstandard
└───tools
Package Libraries and Tools Size Description Example
7za.dll ~284 - ~403 KB Compact version of 7z.dll library for 7z archives.
7zxa.dll ~159 - ~211 KB Compact version of 7z.dll library for extracting from 7z archives.
7z.dll ~1.23 - ~1.80 MB Full 7-Zip engine for work with all available formats.
hMSBuild.bat ~18 KB hMSBuild to build projects with msbuild tools+ hMSBuild -cs -no-less-15
netfx4sdk.cmd ~6 KB netfx4sdk to build on legacy platforms netfx4sdk -mode sys || netfx4sdk -mode pkg to support netfx4.0 etc.
gnt.bat ~8 KB GetNuTool to service NuGet packages including this gnt 7z.Libs for working with the solution level or for manual adding 7z.Libs etc.
vsSolutionBuildEvent.bat ~8 KB vsSolutionBuildEvent bat version for customizing or editing build scripts including 7z.Libs

7-zip Supported formats

  • Packing / Unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM
  • Unpacking only: AR, ARJ, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT, HFS, IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, RPM, SquashFS, UDF, UEFI, VDI, VHD, VMDK, WIM, XAR and Z.

Contributing

7z.Libs is waiting for your awesome contributions!

*click vsSolutionBuildEvent.bat to perform additional build actions

git clone https://github.com/3F/7z.Libs.git src
cd src & vsSolutionBuildEvent