Hi,
it seems your implementation of EmbeddedPortable debug infos isn’t up do date (?)
When using System.Reflection.Metadata to get the MetadataReaderProvider i get a BadImageFormatException with “Unsupported format version: 0.0”
Water doesn’t seem to have a problem with that.
The code i use ist similar to that:
var
pereader:PEReader;
embeddedEntries:ImmutableArray;
provider:MetadataReaderProvider;
begin
pereader:=new PEReader(fs);
embeddedEntries := pereader.ReadDebugDirectory;
for each dde:DebugDirectoryEntry in embeddedEntries do
begin
if dde.Type=DebugDirectoryEntryType.EmbeddedPortablePdb then
begin
provider:=pereader.ReadEmbeddedPortablePdbDebugDirectoryData(dde); // ← Exception