Skip to content

ILLink removes embedded sources #115145

@rolfbjarne

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

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions