Vestris.ResourceLib 2.2.0

dotnet add package Vestris.ResourceLib --version 2.2.0
                    
NuGet\Install-Package Vestris.ResourceLib -Version 2.2.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="Vestris.ResourceLib" Version="2.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vestris.ResourceLib" Version="2.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Vestris.ResourceLib" />
                    
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 Vestris.ResourceLib --version 2.2.0
                    
#r "nuget: Vestris.ResourceLib, 2.2.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.
#addin nuget:?package=Vestris.ResourceLib&version=2.2.0
                    
Install Vestris.ResourceLib as a Cake Addin
#tool nuget:?package=Vestris.ResourceLib&version=2.2.0
                    
Install Vestris.ResourceLib as a Cake Tool

ResourceLib C# File Resource Management Library

Build status NuGet NuGet

There are several good articles about reading and writing resources from/to a compiled binary. Most focus on retrieving module version information and modifying version information, mostly in C++. Some detail the same operations for cursors, icons or dialog resources. There is, however, no single .NET library to retrieve and save any type of resources, or any library to edit version resources specifically.

This project is a framework that enumerates resources and implements both read and write of the file version VS_VERSIONINFO, string resources such as company, copyright and product information, RT_GROUP_ICON and RT_ICON, RT_CURSOR, RT_BITMAP, RT_MENU, RT_DIALOG, RT_STRING, RT_ACCELERATOR, RT_FONT and RT_FONTDIR and RT_MANIFEST resources. It's unit-tested and well documented.

Installation

ResourceLib is distributed as a NuGet package:

PM> Install-Package Vestris.ResourceLib

Getting Started

In your project add a reference to Vestris.ResourceLib.dll and a namespace reference.

using Vestris.ResourceLib;

The following example demonstrates enumerating resources by resource type. From the sample atl.dll in the Windows system directory, you will typically get the following resources: MUI, REGISTRY, TYPELIB, and RT_VERSION resource.

string filename = Path.Combine(Environment.SystemDirectory, "atl.dll");
using (ResourceInfo vi = new ResourceInfo())
{
    vi.Load(filename);
    foreach (ResourceId id in vi.ResourceTypes)
    {
        Console.WriteLine(id);
        foreach (Resource resource in vi.Resources[id])
        {
            Console.WriteLine("{0} ({1}) - {2} byte(s)",
                resource.Name, resource.Language, resource.Size);
        }
    }
}

Reference

Contributing

Fork the project on Github, commit changes to your local repository, push changes to your fork, and make a pull request. Bonus points for topic branches. Also see Setting up a Development Environment.

Copyright (c) Daniel Doubrovkine, Vestris Inc., 2008-2016.

This project is licensed under the MIT license.

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.  net9.0 was computed.  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. 
.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 was computed. 
.NET Framework net20 is compatible.  net35 is compatible.  net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  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.
  • .NETFramework 2.0

    • No dependencies.
  • .NETFramework 3.5

    • No dependencies.
  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 2.0

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Vestris.ResourceLib:

Package Downloads
Il2CppToolkit.Runtime

Package Description

Il2CppToolkit.Target.NetCore

Package Description

GitHub repositories (11)

Showing the top 11 popular GitHub repositories that depend on Vestris.ResourceLib:

Repository Stars
quasar/Quasar
Remote Administration Tool for Windows
NYAN-x-CAT/AsyncRAT-C-Sharp
Open-Source Remote Administration Tool For Windows C# (RAT)
moom825/xeno-rat
Xeno-RAT is an open-source remote access tool (RAT) developed in C#, providing a comprehensive set of features for remote system management. Has features such as HVNC, live microphone, reverse proxy, and much much more!
qwqdanchun/DcRat
A simple remote tool in C#.
microsoft/winget-create
The Windows Package Manager Manifest Creator command-line tool (aka wingetcreate)
arsium/EagleMonitorRAT
Remote Access Tool Written In C#
INotGreen/SharpThief
一键提取exe的图标、嵌入图标、资源信息、版本信息、修改时间、数字签名,降低程序熵值
Blank-c/Umbral-Stealer
Umbral Stealer is a fast, lightweight stealer written in C#. The collected data is transferred through discord webhooks.
we1h0/ElegyRAT-C-Sharp
Open-Source Remote Administration Tool For Windows C# (Be Based On AsyncRAT)
Grinchiest/SantaRat
A remote access trojan to use against Santa's laptop!
Quasar-Continuation/Pulsar
A continuation of the famous quasar remote administration tool
Version Downloads Last updated
2.2.0 13,928 7/2/2024
2.2.0-beta0004 2,266 1/29/2020
2.1.0 179,751 2/12/2019
2.1.0-beta0005 648 1/14/2019
2.0.0 9,839 8/21/2018
2.0.0-beta0050 727 8/21/2018
2.0.0-beta0047 761 8/16/2018
2.0.0-beta0045 1,021 5/30/2018
2.0.0-beta0042 1,095 5/18/2018
2.0.0-beta0038 1,018 5/7/2018
2.0.0-beta0037 902 5/7/2018
2.0.0-beta0036 874 5/6/2018
2.0.0-beta0032 959 5/5/2018
2.0.0-beta0031 921 5/5/2018
1.6.422 18,730 4/21/2017
1.5.328 14,321 3/28/2016