Skip to content

Avoid hardcoded TFM in illink #109335

@ViktorHofer

Description

@ViktorHofer

_illinkPath = Path.Combine (Path.GetDirectoryName (taskDirectory), "net9.0", "illink.dll");

There are ways to avoid this hardcode, i.e. by passing in an additional parameter to the msbuild task or by inferring it somehow else. I would assume that the linker.dll and the ILLink.Tasks.dll TFM should be in sync and could be read from the assembly metadata.

@sbomer @agocke

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Tools-ILLink.NET linker development as well as trimming analyzersin-prThere is an active PR which will close this issue when it is merged

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions