Skip to content

Add package to specified project #583

Closed

Description

@ascjones

When dealing with solutions with many projects (not F# solutions :-)), and you want to install a package to only a single project it can be annoying to go through all the projects using the interactive option with paket add.

So how about an option to add the package to a specified project? Similar to the -ProjectName parameter in the Install-Package nuget cmdlet. Something like this perhaps:

paket add nuget SomePackage project MyProject

Is this desirable, and is the above syntax the correct style? I based it on the 'version' option of paket update.

I've had a quick stab at this: geniussportsgroup@14ce3a2

Let me know what you think and I will create a pull request if you agree it's a good idea. I certainly would use this feature!

Activity

  1. isaacabraham commented on Feb 7, 2015

    @isaacabraham
    Contributor

    linked to #352

  2. forki commented on Feb 8, 2015

    @forki
    Member

    Sounds good.
    On Feb 7, 2015 10:54 PM, "Isaac Abraham" [email protected] wrote:

    linked to #352 #352

    —
    Reply to this email directly or view it on GitHub
    #583 (comment).

  3. ascjones commented on Feb 8, 2015

    @ascjones
    ContributorAuthor

    Ah thanks @isaacabraham - didn't know about that way of doing it. Now I read the docs for paket install properly it does mention that behaviour.

    So is it still worth adding the command line 'project' option I've done, or not?

    I suppose the benefit would be just running one command add instead of add; edit paket.references; then install.

    If so I will just test it properly before sending a PR.

  4. isaacabraham commented on Feb 8, 2015

    @isaacabraham
    Contributor

    I think an add command would be a good feature - particularly if you already have a package and want to add it to (or remove from) a project.


    From: Andrew Jonesmailto:[email protected]
    Sent: ‎08/‎02/‎2015 12:13
    To: fsprojects/Paketmailto:[email protected]
    Cc: Isaac Abrahammailto:[email protected]
    Subject: Re: [Paket] Add package to specified project (#583)

    Ah thanks @isaacabraham - didn't know about that way of doing it. Now I read the docs for paket install properly it does mention that behaviour.

    So is it still worth adding the command line 'project' option I've done, or not?

    I suppose the benefit would be just running one command add instead of add; edit paket.references; then install.

    If so I will just test it properly before sending a PR.


    Reply to this email directly or view it on GitHub:
    #583 (comment)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions