Skip to content

"copy_local" is not respected for indirect dependencies #856

Closed

Description

@dmitryvk

I have a following case:

  1. paket.dependencies:
    copy_local: false ...
  2. paket.references:
    some_package_1 copy_local: true
  3. some_package_1 depends on some_package_2.

After running "paket install", in csproj file I have:

...
<Reference Include="some_package_1">
  <Private>True</Private>
  ...
</Reference>
...
<Reference Include="some_package_2">
  <Private>False</Private>
  ...
</Reference>
...

I expected that some_package_2 would also get "True".

Is there a way to propagate this option to indirect dependencies of referenced nuget package?

Activity

  1. forki commented on Jun 3, 2015

    @forki
    Member

    Mhm I think it's already inherited in the dependencies file. So you're
    right we should inherit it also in the references file.

    As a workaround add the dependent package also to the references file.
    On Jun 3, 2015 10:55 AM, "Kalyanov Dmitry" [email protected] wrote:

    I have a following case:

    1. paket.dependencies:

    copy_local: false
    ...

    1. paket.references:

    some_package_1 copy_local: true

    1. some_package_1 depends on some_package_2.

    After running "paket install", in csproj file I have:

    ...

    True
    ...

    ...

    False
    ...

    ...

    I expected that some_package_2 would also get "True".

    Is there a way to propagate this option to indirect dependencies of
    referenced nuget package?

    —
    Reply to this email directly or view it on GitHub
    #856.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions