I've been trying to use Cecil to hook methods on the executing
assembly (see attached picture), just to start getting used to the
framework. Unfortunately, no matter what I do, I can't get it to work.
Using the ReadWrite = true will throw an exception.
Not using ReadWrite will not insert the new method call before the old one.
Using XUnit and .net6
Could you please point me in the right direction?
Thank you in advance.
Hi Jb,
I've been trying to use Cecil to hook methods on the executing assembly (see attached picture), just to start getting used to the framework. Unfortunately, no matter what I do, I can't get it to work. Using the ReadWrite = true will throw an exception. Not using ReadWrite will not insert the new method call before the old one.
Using XUnit and .net6
Could you please point me in the right direction? Thank you in advance.
Cheers, Mirko