Hi im trying to read data from pdb files
Ive followed the steps from How do I use the MS DIA SDK from C#? and generated the assembly
The problem is: When calling dataSource.loadDataFromPdb on a MS pdb file it throws a ComException(HRESULT: 0x806D000C)
Ive tried using dumpbin.exe /headers but it fails with "unknown format"
Using .loadDataFromPdb and dumpbin on a selfgenerated pdb works as it should
IDiaDataSource dataSource = new DiaSourceClass();
//dataSource.loadDataFromPdb(@"D:\Symbols\System.Data.Entity.pdb"); // Fails
dataSource.loadDataFromPdb(@"D:\Symbols\myassembly.pdb"); // Success
IDiaSession session;
dataSource.openSession(out session);
var guid = session.globalScope.guid.ToString();
Is there another way to open MS pdb files, and specifically extract the GUID