Skip to content

copy_local: true has no effect on netstandard projects #3810

Description

@aggieben

Description

Dependencies are not copied to the output directory of a project targeting netstandard2.x (but they are for net4x).

Repro steps

Please provide the steps required to reproduce the problem

  1. dotnet new -i "MiniScaffold::*"

  2. dotnet new mini-scaffold

  3. After restore/build completes, check {proj}\bin\Debug\net461 and see dependencies copied. Check {proj}\bin\Debug\netstandard2.1 and see no dependencies copied.

If possible then please create a git repository with a repro sample or attach a zip to the issue.

Expected behavior

Expect copy local behavior to match paket directive. This is rather important for building certain things, like type providers. I also think this is the root cause of BenchmarkDotNet#1392.

Actual behavior

The paket directive seems to not matter. See also: #3645, #3352, #3154, #3186.

Known workarounds

None? Using PackageReference instead of paket, I guess

Activity

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