I have uploaded a file rapptor.zip which contains a
rapptor.persistence.dll assembly. Cecil cannot round trip the assembly
correctly.
Here is code to reproduce the error:
try
{
AssemblyDefinition ad = AssemblyFactory.GetAssembly
(@"c:\RAPPTOR.Persistence.dll");
AssemblyFactory.SaveAssembly(ad, @"c:\output
\RAPPTOR.Persistence.dll");
Assembly a = Assembly.LoadFile(@"c:\output
\RAPPTOR.Persistence.dll");
a.GetTypes();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
ReflectionTypeLoadException rtle = ex as
ReflectionTypeLoadException;
if (rtle != null)
{
foreach (Exception ee in rtle.LoaderExceptions)
{
MessageBox.Show(ee.ToString());
}
}
}
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---