Skip to content

ILLink removes embedded sources #115145

Closed

Description

@rolfbjarne

Description

It seems the linker removes embedded sources from linked pdb files.

The test project is a .NET console project that references Microsoft.iOS.dll (TargetFramework=net10.0, not TargetFramework=net10.0-ios), and which is linked. Once linked, the resulting Microsoft.iOS.pdb in the publish directory has incorrect sourcelink information (it looks like the linker linked away some embedded sources).

Reproduction Steps

Expected / actual behavior

Compare the resulting original.txt and actual.txt for expected and actual behavior.

Regression?

Yes, this is a regression in .NET 10 preview 4.

It's happening in these maestro bumps:

Known Workarounds

No response

Configuration

.NET 10 preview 4+

Other information

No response

Activity

  1. ghost added
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Apr 29, 2025
  2. added
    area-Tools-ILLink.NET linker development as well as trimming analyzers
    and removed
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Apr 29, 2025
  3. dotnet-policy-service commented on Apr 29, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/illink
    See info in area-owners.md if you want to be subscribed.

  4. removed
    untriagedNew issue has not been triaged by the area owner
    on Apr 30, 2025
  5. added this to the 10.0.0 milestone on Apr 30, 2025
  6. modified the milestones: 10.0.0, 11.0.0 on Jul 28, 2025
  7. locked and limited conversation to collaborators on Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-Tools-ILLink.NET linker development as well as trimming analyzers

Type

No type

Projects

  • Status
    No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions