question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`copy_local: false` has no effect in paket.references (.NET SDK)

See original GitHub issue

The issue is related to the recently resolved https://github.com/fsprojects/Paket/issues/3154

Use the same steps for reproducing the problem with one change:

  • do not use copy_local: false in paket.dependencies
  • instead, in paket.references use Suave copy_local: false

Expected result

On building the project Suave.dll is not copied to the output directory.

Actual result

Suave.dll is copied to the output directory.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
atlemanncommented, Sep 7, 2018

The difference between setting copy_local: false in paket.dependencies and paket.references you can see in the generated {projectfilename}.paket.net462.resolved file in the obj folder:

  • set copy_local: false in paket.dependencies: FSharp.Core,4.5.2,Transitive,Main,exclude Suave,2.4.3,Direct,Main,exclude

  • set copy_local: false in paket.references: FSharp.Core,4.5.2,Transitive,Main,false Suave,2.4.3,Direct,Main,false

I would think that both should end up with exclude as the last element.

0reactions
Uriel6575commented, Apr 19, 2019

It’s hard for me to tell what’s the reason for it no to work anymore, but with preview 4 installed targeting to netcoreapp3.0 ignores copy_local option. While targeting netcoreapp2.0 don’t.

Read more comments on GitHub >

github_iconTop Results From Across the Web

visual studio - Set "Copy Local" to False by default?
If the assembly is found in the global assembly cache, the value is false. As a special case, the value for the mscorlib.dll...
Read more >
release-notes
Added MonoAndroid9.0 + compatibility between .NET Standard 2.0 and MonoAndroid8. · BUGFIX: copy_local: false had no effect in paket.references (.NET SDK) - https ......
Read more >
Do NOT Change “Copy Local” project references to false ...
Another example when copylocal =false fails on run-time, is when top level assembly doesn't directly referenced one of indirect dependencies.
Read more >
MSBuild reference for .NET SDK projects
This page is a reference for the MSBuild properties and items that you can use to configure .NET projects. Note. This page is...
Read more >
Thread: [RESOLVED] DLL copy local issue
Hello, I need help on DLL that is set Copy Local = false. Upon running the program, i receive this error message.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found