Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SourceLink information not retained after copy/pasting package to a different location. #904

Open
TrymKristian opened this issue Nov 8, 2022 · 5 comments

Comments

@TrymKristian
Copy link

Due to legal reason I cannot disclose any screenshots of this issue to the public.

I have a set of nuget packages that are being built on Azure Devops Server with SourceLink. These nuget packages are dumped by a pipeline to a fileshare. So far so good.

However when I copy the nuget package onto my local machine. The SourceLink information just vanishes.
I've observed this issue by leveraging the NuGet Package Explorer.

Is this an intended feature with SourceLink. Or do I need to investigate potential firewalls between me and the fileShare.

@KalleOlaviNiemitalo
Copy link

Do you include the debug symbols in the NuGet packages (as pdb files, or embedded in the exe or dll files)?

@TrymKristian
Copy link
Author

No, symbols are its own .snupkg.

@KalleOlaviNiemitalo
Copy link

Do you have a symbol server that reads the symbols from the snupkg and serves them? AFAIK neither the SDK nor the debuggers can read directly from snupkg.

@TrymKristian
Copy link
Author

Yeah, we're using jfrog with the newly supported artifactory for .snupkg to serve as our symbol server. I was thinking of using source link. So using nupkg and snupkg I've been able to debug packages. However I just found this issue very strange that, when as mentioned, I just copied a nupkg from network location onto local disk.

@tmat
Copy link
Member

tmat commented Nov 9, 2022

@clairernovotny I'm guessing that somehow NuGet Package Explorer can't find the PDBs/symbol packages.
Source Link information is embedded into the PDB. The tool that uses Source Link info needs to be able to find the PDB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants