Dependency problem causes VS compilation to fail

In Visual Studio I sometimes receive an obscure message about over writing dependant DLL files.

Ever seen an error message like this one when trying to compile your Visual Studio project?

Error: The dependency [name], Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=[etc]' in project [name] cannot be copied to
the run directory because it would conflict with dependency [name],
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=[etc]'.

This error often occurs when you have multiple projects in a solution which depend upon each other, especially if a project is depended upon by more than one other project.

The simple solution to this problem is to go into the \bin folder of each of your projects and delete all of the files inside.


Share this article!

Follow us!

Find more helpful articles: