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:

        <IncludeSource>True</IncludeSource>
        <IncludeSymbols>True</IncludeSymbols>
    

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

  2. 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

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:26 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? 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

 

03 Oct, 2024 07:07 PM
01 Oct, 2024 05:06 PM
01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM