Dependency Error: The dependency <dll> in project <project> cannot be coppied to the run directory b

J

Jay A. Moritz

Error: The dependency '<my dll>' in project '<my project>' cannot be copied
to the run directory because it would conflict with dependency '<my dll>'.


I am getting a dependency error building my application that was using some
other namespaces that I had built and incorrectly referenced to the dll
instead of the project, but I ended up removing the reference entirely but
my project keeps getting the error.

How do I tell my project to stop looking for a dll that isn't even
referenced anymore and stop giving me this <expletive removed> error?

Jay A. Moritz
 
G

Guest

Two things you could try:

1. Check that all the references paths in your project properties are
correct. Old reference paths can cause VS to pick up the wrong dlls

2. If that seems to be alright try deleting all the dlls in your bin
directory.
 
C

Cor Ligthert

Jay,

Mostly this error is gone when you do a restart of your computer. It happens
because you have locked that dll. You can search as well what locks it of
course.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top