Skip to content

[SourceLink] Use PEReader to try to read pdbs #57417

@davidwengier

Description

@davidwengier

We should be checking that the PDB version matches the DLL when we find the .pdb file next to the .dll.

The easiest way to handle both cases (including the embedded PBD) is to use PEReader.TryOpenAssociatedPortablePdb method: https://source.dot.net/#System.Reflection.Metadata/System/Reflection/PortableExecutable/PEReader.cs,d04ae6c22fdcad8f,references

Originally posted by @tmat in #57073 (comment)

Metadata

Metadata

Assignees

Labels

Navigation-SourceLinkMetadata as Source, SourceLink, DecompilationuntriagedIssues and PRs which have not yet been triaged by a lead

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions