I need to keep track of source code lines based on which certain instructions are to be injected.
Steps I followed are as below:
Built my project in debug mode which generated DLLs and corresponding PDBs(these were incremental PDBs and did not have sequence point information of all the methods)
Placed the DLL and PDB in the same folder and used it with Mono.cecil to get sequence point information and injected the instructions. This worked fine for the methods that had sequence point info in PDB
Again, built my project in debug mode but this time added below code in csproj file
<PropertyGroup> <DebugType>Full</DebugType> <PropertyGroup/>
This generated a full PDB file along with DLLs
Upon using the DLL and full PDB in the same filepath, this time Mono.cecil throws below error
Mono.Cecil.Cil.SymbolNotFoundException: 'No symbol found for file my_file_path\abc.dll"
How do I get Mono.cecil work with full PDBs instead of incremental PDBs.
Thanks in advance.