Hi, I have a problem.
I use mono.cecil to modify a WPF .exe file. Visual Studio creates pdb
file that is 131 KB, after modification with mono.cecil (and
mono.cecil.pdb) the pdb file is only 40 KB.

AssemblyDefinition sourceAssembly =
AssemblyFactory.GetAssembly(shadowCopyPath);

ModuleDefinition modDef = sourceAssembly.MainModule;
PdbFactory pdbFactory = new PdbFactory();
ISymbolReader reader = pdbFactory.CreateReader(modDef,
shadowCopyPath);

modDef.LoadSymbols(reader);

foreach (TypeDefinition type in sourceAssembly.MainModule.Types)
{
//Do some modification
}

modDef.SaveSymbols(Path.GetDirectoryName(shadowCopyPath));
AssemblyFactory.SaveAssembly(sourceAssembly, shadowCopyPath);

Am i doing something wrong?

-- 
--
mono-cecil

To unsubscribe from this group, send email to 
mono-cecil+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to