`copy_local: false` has no effect in paket.references (.NET SDK)
See original GitHub issueThe 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:
- Created 5 years ago
- Comments:8 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The difference between setting
copy_local: false
inpaket.dependencies
andpaket.references
you can see in the generated{projectfilename}.paket.net462.resolved
file in theobj
folder:set
copy_local: false
inpaket.dependencies
: FSharp.Core,4.5.2,Transitive,Main,exclude Suave,2.4.3,Direct,Main,excludeset
copy_local: false
inpaket.references
: FSharp.Core,4.5.2,Transitive,Main,false Suave,2.4.3,Direct,Main,falseI would think that both should end up with
exclude
as the last element.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.