Skip to content

'dotnet pack nuspec' ignores argument --include-symbols and emits no .snupkg #14903

Open

Description

@martinrrm

Moving from Feedback ticket: https://developercommunity.visualstudio.com/t/dotnet-pack-nuspec-ignores-argument---/11083836

‘DotNet pack’ with a nuspec file (supported since .NET 10) doesn’t generate a separate symbol package.

Current .NET SDK version: 10.0.6

We tried different commands:

dotnet pack ./PoC.Library.Windows.nuspec --no-build --no-restore --verbosity detailed --include-symbols --include-source

dotnet pack ./PoC.Library.Windows.nuspec --no-build --no-restore --verbosity detailed --include-symbols

dotnet pack ./PoC.Library.Windows.nuspec --no-build --no-restore --verbosity detailed

Error:

We always get the same .nupkg file, which contains all files (assemblies, .pdb’s and sources).

PoC.Library.Windows.nuspec:

Activity

  1. added
    Priority:3
    on May 18, 2026
  2. egortech commented on Aug 18, 2026

    @egortech

    Any progress on this? Its sadly gap in functionality between nuget.exe and dotnet cli.

  3. egortech commented on Aug 18, 2026

    @egortech

    Open PR that fixes that problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Functionality:PackPriority:3Product:dotnet.exeType:Feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions