Skip to content

Add an existing dependency to a project #352

Closed

Description

@isaacabraham

It's not easy to change what projects reference any given dependency. You should be able to manually add a dependency to a given .references file and then call some sort of refresh command which will scan through all .references files and ensure that they match the project. The current approach of install --hard also reapplies existing packages. For packages like the SqlClient Type Provider this is annoying because it adds some default folders and files every time.

Alternatively, have the ability to do something like:

   paket add nuget MyPackage MyProject.fsproj // adds MyPackage to the .references file of MyProject and applies it.
   paket remove nuget MyPackage MyProject.fsproj // removes MyPackage

Activity

  1. DamianReeves commented on Nov 18, 2014

    @DamianReeves

    +1 I totally agree with this.

  2. forki commented on Dec 30, 2014

    @forki
    Member

    with paket 0.20 you can just edit the references file (even add completely new packages) and run paket install - it will add new packages to the dependencies file and the lock file.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions