views:

29

answers:

3

I have fou.dll that also needs friendfou.dll When I compile my project friendfoul.dll is being pulled into my bin folder from somewhere, I can tell because I delete friendfoul.dll and it reappears on compile.

How can I tell where friendfoul.dll is being pulled from?

A: 

Open the Solution Explorer, expand the project's References node and open the Properties window of the fou.dll reference. You will see the path from where it is being copied.

CyberDude
true, but friendfoul.dll isn't there
mike
In fact friendfoul.dll is in many places. I inherited a massive solution where friendfoul.dll needs to be located in many, many, many places.
mike
and to top it off they all have the same version number but different build dates and file sizes and I'm trying to clean this krap up
mike
so it's not added as a reference but still being copied there?
CyberDude
correct, my project never references firendfou.dll but it is a reference in fou.dll
mike
maybe this related question will help: http://stackoverflow.com/questions/1325745/order-of-assembly-resolution-during-compile
CyberDude
+1  A: 

If you open the project file (*project_name*.csproj for a C# project, for instance) and look for the entry with the entries, you can find the info you seek there, I believe.

Andrew Barber
the assembly hint?
mike
yea, only for fou.dll though not friendfou.dll
mike
A: 

Since you said in comments that friendfou.dll is not a reference of your project, try looking at a build events if dll is copied from somewhere. To find build events, go to project properties, on build events tab and look at pre-build or post-build event command lines and see if there are any references to friendfou.dll

Ivan Ferić