Yeap, sure. You'll find three files in the attached zip:
1. MethodInjectionTest.cs - test source code: opens it's binary, adds an
interface to the test class and implements it, saves binary into new place;
2. MethodInjectionTest.exe - working binary built with VS2010 for .NET 4.0;
3. MethodInjectionTest_new.exe - binary produced by test, fails to launch.

I hope that will help, but if you need more info, let me know.

WBR
Alex

On Mon, May 24, 2010 at 2:06 PM, Jb Evain <[email protected]> wrote:

> Hey Alexander,
>
> On Fri, May 21, 2010 at 2:28 PM, Buryak Alexander
> <[email protected]> wrote:
> > I've used the next code that worked fine with old cecil:
> > http://www.everfall.com/paste/id.php?xcdtvfgdbvin - but with cecil/
> > light it produces not loadable assembly: .net reports "Unable to load
> > one or more of the requested types. Retrieve the LoaderExceptions
> > property for more information." with "The signature is incorrect." in
> > LoaderExceptions for the modified type.
>
> Could you post here the code that is failing (in a reproduce-able form)?
>
> --
> Jb Evain  <[email protected]>
>
> --
> --
> mono-cecil

-- 
--
mono-cecil

Attachment: MethodInjectionTest._zip_
Description: Binary data

Reply via email to