Go Back   Exetools > General > Source Code


Thread Tools Display Modes
Old 01-12-2024, 13:53
ahmadmansoor's Avatar
ahmadmansoor ahmadmansoor is offline
Join Date: Feb 2006
Location: Syria
Posts: 1,045
Rept. Given: 509
Rept. Rcvd 373 Times in 142 Posts
Thanks Given: 336
Thanks Rcvd at 407 Times in 119 Posts
ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399
Thumbs up Harmony A library for patching, replacing and decorating .NET and Mono methods during

It was mentioned by @Levis and it is a really good tool with src.


Harmony gives you an elegant and high level way to alter the functionality in applications written in C#. It works great in games and is well established in titles like 7 Days To Die, BattleTech, Besiege, Cities:Skylines, Kerbal Space Program, Oxygen Not Included, Ravenfield, Rimworld, Sheltered, Stardew Valley, Staxel, Subnautica, The Ultimate Nerd Game, Total Miner, Unturned, SCP: Secret Laboratory and many more.

It is also used in unit testing WPF controls and in many other areas.
How it works

If you develop in C# and your code is loaded as a module/plugin into a host application, you can use Harmony to alter the functionality of all the available assemblies of that application. Where other patch libraries simply allow you to replace the original method, Harmony goes one step further and gives you:

• A way to keep the original method intact
• Execute your code before and/or after the original method
• Modify the original with IL code processors
• Multiple Harmony patches co-exist and don't conflict with each other
• Works at runtime and does not touch any files

Attached Files
File Type: zip Harmony. (3.90 MB, 19 views)
File Type: zip Harmony- (2.50 MB, 18 views)
Ur Best Friend Ahmadmansoor
Always My Best Friend: Aaron & JMI & ZeNiX
Reply With Quote
The Following User Gave Reputation+1 to ahmadmansoor For This Useful Post:
Levis (01-13-2024)
The Following 3 Users Say Thank You to ahmadmansoor For This Useful Post:
Levis (01-13-2024), niculaita (01-13-2024), uranus64 (01-12-2024)
Old 01-12-2024, 15:06
atom0s's Avatar
atom0s atom0s is offline
Join Date: Jan 2015
Posts: 397
Rept. Given: 26
Rept. Rcvd 126 Times in 63 Posts
Thanks Given: 54
Thanks Rcvd at 733 Times in 280 Posts
atom0s Reputation: 100-199 atom0s Reputation: 100-199
Here are some other projects that are similar:

- dnlib: https://github.com/0xd4d/dnlib
- Mono.Cecil: https://github.com/jbevain/cecil
- Fody: https://github.com/Fody/Fody
- Aspect Injector: https://github.com/pamidur/aspect-injector
- NConcern: https://github.com/Puresharper/NConcern
- Puresharp: https://github.com/Puresharper/Puresharp (Newer version of NConcern.)
Personal Projects Site: https://atom0s.com
Reply With Quote
The Following 2 Users Say Thank You to atom0s For This Useful Post:
ahmadmansoor (01-14-2024), niculaita (01-13-2024)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

All times are GMT +8. The time now is 01:59.

Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )