找出原因的Visual Studio决定DLL文件复制到bin目录 [英] Find out why Visual Studio decides to copy DLLs into a bin directory

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

问题描述

我有一个Web应用程序项目。我试图找出为什么某些DLL文件被复制到Web应用程序的bin目录。至于我可以看到有引用列表下这些DLL的引用。

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.

虽然我不认为它应该有所作为,我已经通过所有的Web应用程序依赖于和所选择的项目DLLS 复制本地=假

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.

不过还是当我构建解决方案,这些DLL在bin目录中露面。我不想让他们在那里。我怎样才能找出什么是放的DLL呢?

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?

推荐答案

这是间接引用吧?

也就是说,你引用程序集A和它引用装配B和C preSTO! B.DLL和C.dll在你的bin文件夹。使用反射或的 ILDASM 来检查你的项目已引用的程序集的引用。

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天全站免登陆