找出为什么Visual Studio决定将DLL复制到bin目录中 [英] Find out why Visual Studio decides to copy DLLs into a bin directory

查看:236
本文介绍了找出为什么Visual Studio决定将DLL复制到bin目录中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web应用程序项目。我试图找出为什么某些DLL被复制到web应用程序的bin目录中。据我看到,没有引用引用列表下的DLL。



虽然我不认为应该有所作为,我已经通过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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆