Hi JB,
I am using Mono Cecil 0.9.6 version to add MSIL (loggers) on .Net Core.
assembly.
Here is the code I am using to read assembly.
AssemblyDefinition.ReadAssembly(targetPhysicalPath, new ReaderParameters {
AssemblyResolver = resolver, ReadSymbols = true });
when ReadSymbols is not passed to ReaderParameters(), assembly is loaded
fine. Below code is working fine.
AssemblyDefinition.ReadAssembly(targetPhysicalPath, new ReaderParameters {
AssemblyResolver = resolver });
Exception stack trace is given below: Can you please help? (Above code is
working fine for .Net 4.0)
--------------------------------------
at Microsoft.Cci.Pdb.MsfDirectory..ctor(PdbReader reader, PdbFileHeader
head, BitAccess bits)
at Microsoft.Cci.Pdb.PdbFile.LoadFunctions(Stream read, Dictionary`2&
tokenToSourceMapping, String& sourceServerData, Int32& age, Guid& guid)
at Mono.Cecil.Pdb.PdbReader.PopulateFunctions()
at Mono.Cecil.Pdb.PdbReader.ProcessDebugHeader(ImageDebugDirectory
directory, Byte[] header)
at Mono.Cecil.ModuleDefinition.ProcessDebugHeader()
at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader)
at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module,
ReaderParameters parameters)
at Mono.Cecil.ModuleReader.CreateModuleFrom(Image image,
ReaderParameters parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(Stream stream,
ReaderParameters parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(String fileName,
ReaderParameters parameters)
at Mono.Cecil.AssemblyDefinition.ReadAssembly(String fileName,
ReaderParameters parameters)
------------------------------------------
------------------------------------------
Thanks & Regards,
Venu
--
--
--
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/d/optout.