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
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, notTargetFramework=net10.0-ios), and which is linked. Once linked, the resultingMicrosoft.iOS.pdbin the publish directory has incorrect sourcelink information (it looks like the linker linked away some embedded sources).Reproduction Steps
Download: https://www.dropbox.com/scl/fi/huwlt21hfia8nx5qd81ch/console-5c86006.zip?rlkey=cpdt40558wa8p8wjj25sb0xlt&st=w391s4pa&dl=0
Install a recent .NET 10 version (I used .NET preview.5.25223.119).
Make sure the
sourcelink.NET tool is installed (dotnet tool install -g sourcelink).Run
./repro.shExpected / actual behavior
Compare the resulting
original.txtandactual.txtfor 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