Can you share that dll/pdb with me? On Fri, Dec 6, 2013 at 4:23 PM, Joe Robe <[email protected]> wrote: > Do you know of any changes which have been made ? It's a net 4.5 assembly I > am enhancing. I can try to debug step but that will be very difficult for me > as I did not write the code. > > Any ideas/hints how this could be troubleshooted ? > > Joe > > > On Fri, Dec 6, 2013 at 10:17 AM, Jb Evain <[email protected]> wrote: >> >> It's hard to say then. The pdb writing code is an horrible black of a com >> api. >> >> Maybe your PDB file is too new and the version we ship of the pdb >> reading code from the CCI doesn't handle it? >> >> Jb >> >> On Fri, Dec 6, 2013 at 4:04 PM, Joe Robe <[email protected]> wrote: >> > Yes, here is the reading code: >> > >> > //create reader params >> > ReaderParameters readerParameters = new ReaderParameters >> > { >> > ReadSymbols = true, >> > SymbolReaderProvider = new PdbReaderProvider(), >> > AssemblyResolver = Context.AssemblyResolver >> > }; >> > >> > //read the target assembly >> > AssemblyDefinition targetAssembly = >> > AssemblyDefinition.ReadAssembly(assemblyPath,readerParameters); >> > >> > >> > On Fri, Dec 6, 2013 at 10:02 AM, Jb Evain <[email protected]> wrote: >> >> >> >> Do you also pass a ReaderParameters with a PdbReaderProvider when >> >> reading the assembly? >> >> >> >> >> >> On Fri, Dec 6, 2013 at 3:48 PM, joer <[email protected]> wrote: >> >> > Hi, >> >> > >> >> > after running cecil to save my modified assembly, the PDB file >> >> > written >> >> > is >> >> > invalid. The original PDB in my case has about 130kb, the new written >> >> > PDB >> >> > just 8 KB. The main assembly gets written correctly and I added a >> >> > PEVErify >> >> > check which returns zero errors. >> >> > >> >> > How can I troubleshoot this ? Any settings I am missing ? Below my >> >> > code: >> >> > >> >> > public void SaveModifiedAssembly() >> >> > { >> >> > var _WriterParameters = new WriterParameters >> >> > { >> >> > WriteSymbols = true, >> >> > SymbolWriterProvider = new PdbWriterProvider() >> >> > }; >> >> > if (enhancedAssembyName.IsNullOrEmpty()) >> >> > { >> >> > enhancedAssembyName = >> >> > assemblyToEnhanceCecil.MainModule.FullyQualifiedName; >> >> > } >> >> > assemblyToEnhanceCecil.Write(enhancedAssembyName, >> >> > _WriterParameters); >> >> > string lPEFileURL = >> >> > Assembly.GetExecutingAssembly().GetDirectoryURL() + "\\PEVerify.exe"; >> >> > AssemblyVerifier.AssemblyVerification.Verify(new >> >> > FileInfo(enhancedAssembyName), lPEFileURL); >> >> > } >> >> > >> >> > >> >> > -- >> >> > -- >> >> > -- >> >> > 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/groups/opt_out. >> >> >> >> -- >> >> -- >> >> -- >> >> 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/groups/opt_out. >> > >> > >> > -- >> > -- >> > -- >> > 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/groups/opt_out. >> >> -- >> -- >> -- >> 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/groups/opt_out. > > > -- > -- > -- > 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/groups/opt_out.
-- -- -- 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/groups/opt_out.
