SingleFileExtractor.Core 2.2.1

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

// Install SingleFileExtractor.Core as a Cake Tool
#tool nuget:?package=SingleFileExtractor.Core&version=2.2.1                

About

This is a library to programmatically extract the contents (assemblies, symbols, configuration, ...) of a single file application to a directory.

Install

Install the SingleFileExtractor.Core NuGet package for your project.

Types from version 1.x are available under the SingleFileExtractor.Core.Legacy namespace.

Usage

Read startup info

When you want to know what the entry point assembly is, you can read the startup info

var reader = new ExecutableReader("application.exe");
var startupInfo = reader.StartupInfo;

Extract all files

var reader = new ExecutableReader("application.exe");

// Validate if executable is a single file executable, and can be extracted
var isSingleFile = reader.IsSingleFile;

if (isSingleFile)
{
    // Extract specific file entry
    await reader.Manifest.Entries[0].ExtractToFileAsync("example.dll");
    // , or create an in-memory stream of a specifc file entry
    var stream = await reader.Manifest.Entries[0].AsStreamAsync()
    
    // Extract all files to a directory
    await reader.ExtractToDirectoryAsync("path/to/output");
}

Extract specific entry to file

var reader = new ExecutableReader("application.exe");
await reader.Manifest.Entries[0].ExtractToFileAsync("example.dll");

Extract specific entry to stream

var reader = new ExecutableReader("application.exe");
var stream = await reader.Manifest.Entries[0].AsStreamAsync()
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  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.
  • .NETStandard 2.0

  • .NETStandard 2.1

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SingleFileExtractor.Core:

Package Downloads
Aardvark.Base

Aardvark is an open-source platform for visual computing, real-time graphics and visualization.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on SingleFileExtractor.Core:

Repository Stars
MCCTeam/Minecraft-Console-Client
Lightweight console for Minecraft chat and automated scripts
xunkong/xunkong
记录旅途中发生的事
Version Downloads Last updated
2.2.1 11,880 8/5/2024
2.2.0 1,971 12/10/2023
2.1.0 691 10/5/2023
2.0.0 787 6/9/2023
1.1.0 795 7/6/2022
1.0.1 9,401 9/11/2021
1.0.0 403 9/10/2021