Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Add mapping from IL to source line / filename when logging warnings/errors #987

Closed

Description

@mateoatr

If we are to make the linker warnings and errors that we surface to IDEs actionable by the users, we need a way to get the source line and file name related to the piece of IL that made the illinker output a warning, this should be done by looking into the pdbs of the related dll/exe, since these contain a mapping between the IL and the declared symbols.

Activity

  1. self-assigned this
    on Apr 16, 2020
  2. vitek-karas commented on Sep 12, 2022

    @vitek-karas
    Member

    This is implemented such that if linker can find the relevant PDBs, it will use it to read source/line info and report warnings with source/line. Otherwise it defaults to report warnings describing the metadata item they're associated with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions