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

Feature request: nuget pack -symbols should embed sources for PortablePDB files #5788

Closed
maartenba opened this issue Aug 22, 2017 · 6 comments

Comments

@maartenba
Copy link
Contributor

Feature request: nuget pack -symbols should embed sources for PortablePDB files.

Right now, just the PortablePDB is embedded, which has no source code in it. This renders creating symbols packages useless, as they can't be used to do source stepping etc.

Repro steps:

  • Pack any project that uses the new .csproj format
  • Publish the package and its symbols
  • Install the package on another machine, try source stepping
  • Source stepping will not work
@dasMulli
Copy link

There are a lot of options at the moment, maybe a good time to re-evaluate the defaults:

  • SourceLink: embeds reference to a remote source to get the source code - now works in portable and windows PDB
  • PDB-Embedded sources: Should work for both portable and windows PDBs, no debugger support yet AFAIK (but some issues in 15.5 milestone).
  • Embedded PDBs: it should be possible to embed sources into the pdb and the pdb into the output dll, so no need for symbol package (but one huge dll).

Th question is how nugget pack and dotnet pack should behave by default..

@maartenba
Copy link
Contributor Author

IMHO a behaviour that "almost always works best", or a command-line switch of course :)

@nkolev92
Copy link
Member

nkolev92 commented Nov 9, 2017

Related to #4142

@maartenba
Copy link
Contributor Author

And #6104

@rrelyea
Copy link
Contributor

rrelyea commented May 14, 2019

SourceLink for your portable pdbs, and then pack them in a .snupkg file is the strategy now.
Shipped in VS2017 15.9 and NuGet 4.9.

@rrelyea rrelyea closed this as completed May 14, 2019
@mattleibow
Copy link

I think 4K packages disagree with this: https://github.com/search?q=AllowedOutputExtensionsInPackageBuildOutputFolder&type=code

Also, how is this to work from a CLI perspective? Will the app know how to download symbols? Maybe I am building a MSBuild task?

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

No branches or pull requests

6 participants