I even tried to do nothing with assembly, just load and unload. The
pdb file changes(from 132KB to 40KB), but still debug doesn't work.
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 nothing
}
modDef.SaveSymbols(Path.GetDirectoryName(shadowCopyPath));
AssemblyFactory.SaveAssembly(sourceAssembly, shadowCopyPath);
I tried to do this process manually and by using AfterBuild task.
Signing and not signing also doesn't help :/
I'm using Mono.Cecil 0.6.9.0 and Mono.Cecil.Pdb 0.2 (from the mono
trunk).
If full source code is needed i can share it.
--
--
mono-cecil
To unsubscribe, reply using "remove me" as the subject.