Allow for including sources in .NET Core symbols packages

Jeffrey Morse's Avatar

Jeffrey Morse

13 Feb, 2018 02:05 PM

Packages created with nuget pack from older *.csproj files included sources, but it seems that packages created with dotnet pack using the new *.csproj format do not. From the Console, it looks like the --include_sources flag would need to be added to the dotnet pack command, but I don't see an option for this.

  1. 1 Posted by Jeffrey Morse on 13 Feb, 2018 02:19 PM

    Jeffrey Morse's Avatar

    I guess I should have spent a little more time trying to figure this out first. If you include the following two elements in the csproj file:


    then the sources will in fact be included when AppVeyor runs dotnet pack.

  2. Support Staff 2 Posted by Ilya Finkelshte... on 13 Feb, 2018 04:47 PM

    Ilya Finkelshteyn's Avatar

    Right, also if you set publish_nuget_symbols: true (Include NuGet symbol packages if you use UI), AppVeyor will add --include-symbols to dotnet pack command line.
    Include source though is not exposed this way and yes, you need to update your .csproj

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac