Ok I wrapped the resolve in this
try
{
return reference.Resolve();
}
catch (Exception exception)
{
throw new Exception(string.Format("Could not resolve
'{0}'.", reference.FullName), exception);
}
And now the stack trace is as follows
Unhandled exception occurred System.Exception: Could not resolve
'System.Action`1'. ---> System.OutOfMemoryException: Exception of type
'System.OutOfMemoryException' was thrown.
at Mono.Cecil.PE.ImageReader.ReadSectionData(Section section)
at Mono.Cecil.PE.ImageReader.ReadSections(UInt16 count)
at Mono.Cecil.PE.ImageReader.ReadImage()
at Mono.Cecil.PE.ImageReader.ReadImageFrom(Stream stream)
at Mono.Cecil.ModuleDefinition.ReadModule(Stream stream, ReaderParameters
parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters
parameters)
at WeavingCommon.AssemblyResolver.GetAssembly(String file, ReaderParameters
parameters)
at WeavingCommon.AssemblyResolver.Resolve(AssemblyNameReference
assemblyNameReference, ReaderParameters parameters)
at WeavingCommon.AssemblyResolver.Resolve(AssemblyNameReference
assemblyNameReference)
at Mono.Cecil.MetadataResolver.Resolve(IAssemblyResolver resolver,
TypeReference type)
at Mono.Cecil.TypeReference.Resolve()
So it is not an obfuscated assembly
--
--
mono-cecil