Why are dll files copied to my Bin / Debug folder of the project at compilation without referring to any of these libraries?

I am confused why Visual Studio creates / copies tons of DLLs in my bin / Debug folders of the project, although I didn’t reference any of these libraries? Dlls represent libraries used in other projects of the same solution as higher than the project, but I don’t understand why libraries without links in one given project are still copied to bin / .... folders. I use NuGet, but I made sure that the NuGet solution with a wide selection of solutions includes only specific projects that come with selected libraries.

+4
source share
2 answers

If project A refers to project B and project B refers to dll C, then project A most likely will not function without dll C (if any functionality from this DLL is indirectly used). This is why dll C is copied to the bin folder of project A.

+6
source

If you use NuGet, do you install packages for each project or choose only those that use it? I don’t understand if you understand this, but I was convinced that the NuGet solution with a wide range of solutions includes only specific projects that come with the selected libraries.

0
source

All Articles