Edmosoft.IO.vbaCompression 0.1.3

dotnet add package Edmosoft.IO.vbaCompression --version 0.1.3
NuGet\Install-Package Edmosoft.IO.vbaCompression -Version 0.1.3
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="Edmosoft.IO.vbaCompression" Version="0.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Edmosoft.IO.vbaCompression --version 0.1.3
#r "nuget: Edmosoft.IO.vbaCompression, 0.1.3"
#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.
// Install Edmosoft.IO.vbaCompression as a Cake Addin
#addin nuget:?package=Edmosoft.IO.vbaCompression&version=0.1.3

// Install Edmosoft.IO.vbaCompression as a Cake Tool
#tool nuget:?package=Edmosoft.IO.vbaCompression&version=0.1.3

Decompression library for Microsoft VBA project files

Usage

System.IO.StreamReader docReader = new System.IO.StreamReader("/path/to/Office.docm");
System.IO.Compression.ZipArchive docCompression = new System.IO.Compression.ZipArchive(docReader.BaseStream);
System.IO.Compression.ZipArchiveEntry vbaProjectArchive = docCompression.GetEntry("word/vbaProject.bin");
System.IO.Stream vbaProjectStream = new System.IO.MemoryStream();
vbaProjectArchive.Open().CopyTo(vbaProjectStream);
OpenMcdf.CompoundFile cf = new OpenMcdf.CompoundFile(vbaProjectStream);
OpenMcdf.CFStream module = (OpenMcdf.CFStream)cf.GetAllNamedEntries("Module1")[0];
System.IO.Stream compressedModule = new System.IO.MemoryStream(module.GetData());
compressedModule.Position = moduleOffset; //moduleOffset is read from structures in the "dir" stream from the CompoundFile, "dir" is also compressed with vbaCompression
System.IO.Stream decompressedModule = Edmosoft.IO.vbaCompression.vbaStreamReader.Decode(new Edmosoft.IO.StreamReader(dir.GetData()));
string ModuleContent = new System.IO.StreamReader(decompressedModule).ReadToEnd();
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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 was computed.  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 is compatible.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net20 is compatible.  net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 is compatible.  net46 is compatible.  net461 is compatible.  net462 is compatible.  net463 was computed.  net47 is compatible.  net471 is compatible.  net472 is compatible.  net48 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Edmosoft.IO.vbaCompression:

Package Downloads
Edmosoft.Office.vbaProject

A library for reading the content of the Macros from a Macro Enabled Microsoft Office Document

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.3 483 12/24/2022
0.1.2 1,364 8/5/2022
0.1.1 354 8/4/2022
0.1.0 348 8/4/2022

add .net 7.0 support