Skip to content

include source link enabled pdb files with Paket.Core nupkg - #2313

Merged
forki merged 8 commits into
fsprojects:masterfrom
ctaggart:Embed.PaketFiles
May 4, 2017
Merged

forki merged 8 commits into
fsprojects:masterfrom
ctaggart:Embed.PaketFiles

Conversation

@ctaggart

@ctaggart ctaggart commented May 3, 2017

Copy link
Copy Markdown
Contributor

This is a followup to #2200, which simply includes the source linked Paket.Core.pdb files in the Paket.Core nupkg. I had to restore some changes from #2200 that were dropped. Please review. cc @cloudRoutine

Comment thread src/Directory.Build.props
<ItemGroup>
<PackageReference Include="SourceLink.Create.CommandLine" Version="2.1.0" PrivateAssets="all" />
<PackageReference Include="SourceLink.Create.CommandLine" Version="2.1.1" PrivateAssets="all" />
<PackageReference Include="SourceLink.Embed.PaketFiles" Version="2.1.1" PrivateAssets="all" />

@ctaggart ctaggart May 3, 2017 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved the below targets into its own package, so that others could easily use it.

iconurl https://raw.githubusercontent.com/fsprojects/Paket/master/docs/files/img/logo.png
tags
nuget, bundler, F#
include-pdbs true No newline at end of file

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packs the pdb for net45.

<Pack>true</Pack>
<PackagePath>lib/netstandard1.6</PackagePath>
</Content>
</ItemGroup>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packs the pdb for netstandard1.6.

@matthid

matthid commented May 3, 2017 •

Copy link
Copy Markdown
Member

I never liked that this doesn't work on linux and restricts releases to windows tbh :/ (Sorry I need to say that with a gentoo logo ;))

@forki

forki commented May 3, 2017 via email

Copy link
Copy Markdown
Member

@matthid

matthid commented May 3, 2017

Copy link
Copy Markdown
Member

;)

@ctaggart

ctaggart commented May 3, 2017

Copy link
Copy Markdown
Contributor Author

@matthid I'm not sure I understand. Are you talking about the creation of portable pdb? If so, then it should work once Linux is on dotnet core.

@matthid

matthid commented May 3, 2017

Copy link
Copy Markdown
Member

@ctaggart Yes. I talk about the nuget release. When we start adding pdbs to the nuget we are windows only when trying to actually do the release ;). I'm not saying we shouldn't do it. Just that I never liked it (and never actually used SourceLink, because I usually automate my release process on my linux/jenkins box).

@matthid I'm not sure I understand. Are you talking about the creation of portable pdb? If so, then it should work once Linux is on dotnet core.

Yes I hope it :) I always wanted to use this :P (and even started to implement a pdb writer, but it was way to much work :P)

@ctaggart

ctaggart commented May 3, 2017

Copy link
Copy Markdown
Contributor Author

@matthid Have a look at SourceLink version 2. It should work on Linux as well. The only requirement is MSBuild 15.

@forki

forki commented May 4, 2017

Copy link
Copy Markdown
Member

thanks!

@forki
forki merged commit 4ca52a4 into fsprojects:master May 4, 2017
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