Vestris.ResourceLib
2.2.0
dotnet add package Vestris.ResourceLib --version 2.2.0
NuGet\Install-Package Vestris.ResourceLib -Version 2.2.0
<PackageReference Include="Vestris.ResourceLib" Version="2.2.0" />
paket add Vestris.ResourceLib --version 2.2.0
#r "nuget: Vestris.ResourceLib, 2.2.0"
// Install Vestris.ResourceLib as a Cake Addin #addin nuget:?package=Vestris.ResourceLib&version=2.2.0 // Install Vestris.ResourceLib as a Cake Tool #tool nuget:?package=Vestris.ResourceLib&version=2.2.0
ResourceLib C# File Resource Management Library
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
- Bitmap (RT_BITMAP)
- Version (RT_VERSION)
- Icon (RT_ICON, RT_GROUP_ICON)
- Menu (RT_MENU)
- Dialog (RT_DIALOG)
- String (RT_STRING)
- Font (RT_FONT, RT_FONTDIR)
- Accelerator (RT_ACCELERATOR)
- Cursor (RT_CURSOR, RT_GROUP_CURSOR)
- Manifest (RT_MANIFEST)
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 and License
Copyright (c) Daniel Doubrovkine, Vestris Inc., 2008-2016.
This project is licensed under the MIT license.
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 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. |
-
.NETFramework 2.0
- No dependencies.
-
.NETFramework 3.5
- No dependencies.
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.5
- No dependencies.
-
.NETStandard 2.0
- System.Drawing.Common (>= 4.7.3)
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 (10)
Showing the top 5 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)
|
Version | Downloads | Last updated |
---|---|---|
2.2.0 | 5,501 | 7/2/2024 |
2.2.0-beta0004 | 2,145 | 1/29/2020 |
2.1.0 | 159,267 | 2/12/2019 |
2.1.0-beta0005 | 615 | 1/14/2019 |
2.0.0 | 9,734 | 8/21/2018 |
2.0.0-beta0050 | 671 | 8/21/2018 |
2.0.0-beta0047 | 714 | 8/16/2018 |
2.0.0-beta0045 | 909 | 5/30/2018 |
2.0.0-beta0042 | 982 | 5/18/2018 |
2.0.0-beta0038 | 898 | 5/7/2018 |
2.0.0-beta0037 | 783 | 5/7/2018 |
2.0.0-beta0036 | 753 | 5/6/2018 |
2.0.0-beta0032 | 838 | 5/5/2018 |
2.0.0-beta0031 | 799 | 5/5/2018 |
1.6.422 | 17,601 | 4/21/2017 |
1.5.328 | 11,772 | 3/28/2016 |