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

enable source linking #1555

Closed
wants to merge 1 commit into from
Closed

enable source linking #1555

wants to merge 1 commit into from

Conversation

ctaggart
Copy link

@ctaggart ctaggart commented Dec 29, 2017

Much has changed since 2013 #103. That was source indexing with Windows PDB files. Instead, this pull request enables source linking of the Portable PDB files and adds them to the main nupkg to be published to NuGet Gallery. SourceLink was added to the .NET Foundation. Several Microsoft projects are expected to ship packages this way in the VS 15.6 time-frame.

Adding the portable pdb files to the nupkg increased it by 847 KB, about 0.8 MB.
image

The .symbols.nupkg size is not affected. However, it becomes obsolete with source linking. You can remove it by removing /p:IncludeSource=true.

One reason for producing this is we would like to troubleshoot some performance issues by including source linked portable pdb files with Ionide ionide/FsAutoComplete#264.

* use SourceLink 2

* do source linking on AppVeyor

* skip deleting workdir if on appveyor

* set workingSourceDir

* no need to copy source files

* just source files

* fixed build

* make sure it is restored

* skip tests & IncludeSource

* input

* get rid of unnecessary changes

* disable dotnet-install to see if that is causing no pdb in nupkg

* it was the installed dotnet that was messing up pack

* use 2.7.3
@JamesNK
Copy link
Owner

JamesNK commented Jan 1, 2018

Several Microsoft projects are expected to ship packages this way in the VS 15.6 time-frame.

Which ones? I'll consider it if it becomes common.

@ctaggart
Copy link
Author

Here is a video demo for a source link enabled Newtonsoft.Json:
https://youtu.be/gyRGhCQPkB4

@ctaggart
Copy link
Author

ctaggart commented Feb 6, 2018

Which ones? I'll consider it if it becomes common.

Soon, all of them. Here is what Microsoft decided:
aspnet/Universe#131 (comment)

@MagicAndre1981
Copy link

any updates? When will this be merged?

@JamesNK
Copy link
Owner

JamesNK commented Jun 19, 2018

I'll be looking enabling sourcelink in the next release.

@ctaggart
Copy link
Author

I can help update it to dotnet/sourcelink if you would like

@ctaggart
Copy link
Author

Replaced by #1746

@ctaggart ctaggart closed this Jun 22, 2018
@ctaggart ctaggart deleted the sourcelink branch June 22, 2018 13:40
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

Successfully merging this pull request may close these issues.

3 participants