This command line tool will allow you to add standard C# events to compiled DLLs
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2020-05-17 14:13:51 +01:00
EventILWeaver.Console help update 2020-05-17 14:13:36 +01:00
EventILWeaver.Weaver weaver will handle multiple different libraries at same time 2020-05-03 16:01:26 +01:00
.gitattributes Add .gitignore and .gitattributes. 2020-03-01 11:08:54 +00:00
.gitignore Add .gitignore and .gitattributes. 2020-03-01 11:08:54 +00:00
EventILWeaver.sln refactored console logic 2020-05-03 10:07:10 +01:00
LICENSE added readme / license 2020-05-17 14:13:51 +01:00
readme.md added readme / license 2020-05-17 14:13:51 +01:00

Adding events to compiled C# library

Sometimes when using 3rd party library I found it'd be great to have additional events that original creator did not think about. Be it for debug purposes or to promptly respond to change.

This command line tool will allow you to add standard C# events to compiled DLLs (at this points property setters are supported).

Approach

Tool uses IL Weaving and will add specified Events directly to specified DLLs. These are standard events, nothing different from writing them out by hand. Usage and performance will be in line with what you'd expect from manually created events.

Since DLL IL code is modified you want to check with dll license if that's allowed. Tool and docs are provided for educational purposes.

General help

Run the tool from command line and reveiw help notes there

Example commands

add-events 
    -t "(filePath)\UnityEngine.CoreModule.dll;(path)\UnityEngine.PhysicsModule.dll; 
    --target-definitions Transform-position-UnityEngine.CoreModule;BoxCollider-size-UnityEngine.PhysicsModule`