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

"Paket pack symbols" also puts the symbols in the non-symbol file #1394

Closed
franknarf8 opened this issue Jan 15, 2016 · 13 comments
Closed

"Paket pack symbols" also puts the symbols in the non-symbol file #1394

franknarf8 opened this issue Jan 15, 2016 · 13 comments

Comments

@franknarf8
Copy link

Hello,

I noticed the 'symbols' flag of the 'pack' command changed behavior recently (it was either created lately or used to only output a single file, I can't recall properly). Anyway, I used to add my sources files manually in the paket.template file and I'm glad this new feature is now online.

I started using 'pack symbols' and I noticed that the .pdb files were also included in the non-symbol.nupkg file.

See repro example : https://github.com/franknarf8/paket-issue-repro/tree/4f8a1ff74bebc37c1dd99270bdaa74db37349c20

A.3.0.0-release.nupkg -> contains A.pdb
A.3.0.0-release.symbols.nupkg -> contains A.pdb + *.cs

Is it intended behavior that the debug symbols (.pdb) are also added to A.3.0.0-release.nupkg?

@forki
Copy link
Member

forki commented Jan 15, 2016

/cc @pms1969

@pms1969
Copy link
Contributor

pms1969 commented Jan 15, 2016

prior to those changes, the pdb's existed for the project that that the template was for. This is different to nuget. I didn't want to break existing behaviour, so for reference projects, I just made sure that the pdb's were also included, as I thought that would be the right thing to do in that situation. If strict nuget compatability is sought, I think that the referenced project and associated pdb's shouldn't be included unless the command line include-referenced-projects option is set.

personally, I don't mind the PDB's being present, but it's not what nuget does.

Steffen (@forki)... thoughts?

@tsibelman
Copy link
Contributor

I opened a bug for this issue, I saw that then pdbs are present in main nuget it impossible to get sources from symbols nuget, looks like need to fixed.

@pms1969
Copy link
Contributor

pms1969 commented Jan 17, 2016

Hi @tsibelman, are you saying that because the pdb's are present in the main nuget package, VS fails to download the source package?

@tsibelman
Copy link
Contributor

Yes it what I encountered during my testing.

@tsibelman
Copy link
Contributor

Here is a duplicate bug #1370

@pms1969
Copy link
Contributor

pms1969 commented Jan 18, 2016

@tsibelman, @franknarf8 should now be fixed as of 2.45.0

@franknarf8
Copy link
Author

Everything works works fine now!
Some paket users may not notice the change though and expect the pdb to be in the main nupkg.

@forki forki closed this as completed Jan 18, 2016
@tsibelman
Copy link
Contributor

@pms1969 thank you

@pms1969
Copy link
Contributor

pms1969 commented Jan 18, 2016

@franknarf8, the way I worked it, was this: if you did not request symbols, pdbs are added if your template file has the switch "include-pdbs true"; if you did request symbols, the normal package will not include pdb's of the project file regardless of whether you have "include-pdbs" set or not, and the symols package will always include the pdbs.

might be useful if anyone goes searching for it.

@allykzam
Copy link
Contributor

allykzam commented Apr 6, 2016

@pms1969:

might be useful if anyone goes searching for it.

Very useful. Found this while trying to figure out why my packages don't include the .pdb files, as they did when I first set-up my project with paket and FAKE. Haven't had to debug a released build in a while, so I didn't realize this behavior had changed.

@pms1969
Copy link
Contributor

pms1969 commented Apr 6, 2016

not a wasted comment then ;-)

Sorry if it caused you issues, but I don't think there was any easy way to resolve it.

@allykzam
Copy link
Contributor

allykzam commented Apr 6, 2016

No problem; adding include-pdbs true in my paket.template files resolves it going forward :)

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

5 participants