gluck / il-repack

Open-source alternative to ILMerge
Apache License 2.0
1.19k stars 217 forks source link

SourceLink is not working when ILRepack is used. #299

Closed TraGicCode closed 2 years ago

TraGicCode commented 3 years ago

Hey,

I have an open-source library which is published as a nuget package. It also has a corresponding symbols nuget package for ( .snupkg ). Unfortunately, when ILRepack is enable and does it's magic, something is going on with the symbols package ( or metadata within the pdb required by sourcelink ) that is causing nuget.org to be unable to find/use the corresponding symbols package ( .snupkg ).

As soon as i removed ILRepack, things seems to be working correctly.

With ILRepack Added: https://github.com/TraGicCode/TraGicCode.NugetTesting/commit/b24a60b1a396f6eb9f6ea1678bbd589acd7a63ea https://ci.appveyor.com/project/TraGicCode/tragiccode-nugettesting/builds/40668104

image

With ILRepack Removed: https://github.com/TraGicCode/TraGicCode.NugetTesting ( master branch ) image

Is this an expected/known issue? It would be great if this worked.