SingleFileExtractor.Core
2.2.1
dotnet add package SingleFileExtractor.Core --version 2.2.1
NuGet\Install-Package SingleFileExtractor.Core -Version 2.2.1
<PackageReference Include="SingleFileExtractor.Core" Version="2.2.1" />
paket add SingleFileExtractor.Core --version 2.2.1
#r "nuget: SingleFileExtractor.Core, 2.2.1"
// 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 | Versions 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. |
-
.NETStandard 2.0
- System.Memory (>= 4.5.5)
-
.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
记录旅途中发生的事
|