Hi! Thanks for reporting this!
Can you provide some more details as to how: 1) You build your helloWorld.dll? .NET version, compiler, etc. 2) How do you load the assembly in nunit, and which version of NUnit you are using? 3) Which error messages do you get? And how do you manage do get different errors? Anything to help us investigate the issue? :) Thanks! Jb On Wed, Jul 22, 2015 at 4:53 AM, Cameron <[email protected]> wrote: > > It appears that Cecil 0.9.6.1 from NuGet breaks Windows .NET DLL consistency > with a simple NOP-roundtrip: > > string clrAssembly= "helloWorld.dll"; > AssemblyDefinition l = AssemblyDefinition.ReadAssembly(clrAssembly); > l.Write(clrAssembly); > > If you try loading helloworld.dll into NUnit before the roundtrip, > everything works OK, and you get a message about how it is not linked with a > framework. > if you try loading helloworld.dll into NUnit afterthe roundtrip, you get a > FileLoadException, sometime regarding the hash, sometimes modules not in the > manifest. > > The xUnit runner displays the same issues also. > > I would speculate the way reflection loads DLLs is more stringent than the > normal loader, and this is why this has not been seen before. > > > > > > -- > -- > -- > mono-cecil > --- > You received this message because you are subscribed to the Google Groups > "mono-cecil" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- -- -- mono-cecil --- You received this message because you are subscribed to the Google Groups "mono-cecil" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
