找出为什么Visual Studio决定将DLL复制到bin目录中 [英] Find out why Visual Studio decides to copy DLLs into a bin directory
问题描述
虽然我不认为应该有所作为,我已经通过web应用程序依赖和选择的所有项目的DLLS Copy Local = False 。
但是,当我构建解决方案时, DLL在bin目录中出现。我不想要他们在那里如何找出什么是把DLL放在那里?
也可以间接引用
也就是说,引用程序集A,并引用程序集B和C。Presto! B.dll和C.dll在你的bin文件夹中。使用反射器或 ildasm 来检查您在项目中引用的程序集的引用。
I have a web application project. I am trying to find out why certain DLLs are being copied into the bin directory of the web application. As far as I can see there are no references to the DLLs under the list of references.
Whilst I don't think it should make a difference, I have been through all the DLLS of the projects that the web application depends upon and selected Copy Local=False.
But still when I build the solution, the DLLs turn up in the bin directory. I don't want them there. How can I find out what is putting the DLLs there?
An indirect reference perhaps?
That is, you reference assembly A and it references assembly B and C. Presto! B.dll and C.dll are in your bin folder. Use reflector or ildasm to check the references of the assemblies you have referenced in you project.
这篇关于找出为什么Visual Studio决定将DLL复制到bin目录中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!