Skip to content

pack argument accepts project or solution #8860

Closed

Description

@zivkan

This stackoverflow question has a comment from a customer who was confused by the docs because it claims the argument only accepts a project file, but testing with a solution file, it packs all the projects in the solution (at least in my simple 2 classlib project solution). I think it would be good if the docs (and dotnet pack -h) were updated to mention that the argument could also be a sln file.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. mkvalluri commented on Jun 9, 2019

    @mkvalluri

    And this issue still exists

  2. mairaw commented on Aug 9, 2019

    @mairaw
    Contributor

    Thanks for the feedback @zivkan and apologies on the delay on getting this triaged. I'm going through the issues for dotnet pack as I'm making some updates to it at the moment. @KathleenDollard @livarcocc dotnet pack --help also states that only projects are accepted. So should I open a bug in the CLI repo too for this?

  3. self-assigned this
    on Aug 9, 2019
  4. added
    waiting-on-feedback
    and removed
    ⌚ Not Triaged
    on Aug 9, 2019
  5. added this to the August 2019 milestone on Aug 9, 2019
  6. mairaw commented on Aug 9, 2019

    @mairaw
    Contributor

    I just confirmed it works with solution files as well, so I'm adding that to the docs.

  7. KathleenDollard commented on Aug 9, 2019

    @KathleenDollard
    Contributor

    And please open an issue on dotnet/cli

  8. mairaw commented on Aug 21, 2019

    @mairaw
    Contributor

    Ok. I've actually opened a PR for that @KathleenDollard dotnet/cli#12331

  9. removed
    waiting-on-feedback
    on Aug 21, 2019
  10. IanKemp commented on Aug 22, 2019

    @IanKemp
    Contributor

    It would also be very helpful to explain what dotnet pack <sln> does behind the scenes (i.e. how it figures out what to pack), since nuget pack doesn't support packing a solution file.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions