dll dependency cannot be copied to the run directory error

  • Thread starter Thread starter AboutJAV
  • Start date Start date
A

AboutJAV

Hi,

I got an application which incorporate many other dll controls. When I
integrated the builds from other person, I get this error all over the
place


Error: The dependency 'MyDAL, Version 1.0.2482.21839, Culture=neutral'
in project 'Controller' cannot be copied to the run directory because
it would conflict with dependency 'MyDAL, Version=1.0.2475.19815,
Culture=neutral.

I got many more of these when adding the new MyDAL project to my
application. How do I fix this?

Thanks
 
This often happens when developers leave wildcard asterisks in the
assemblyinfo file build version string - it gets incremented every time you
do a build. If developers' build versioning gets out of whack, there's the
source of your problem.

You can delete the "supposedly" newer assembly from the output directory
before doing your build as a quick fix. But the best fix is to have a good
build versioning protocol that everyone understands so the issue doesn't
happen in the first place.

Peter
 

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

Similar Threads

Assembly dependencies 1
A strange error when compiling 6
Office dependencies 1
Visual studio dependency problem 2
Dependency problems ... 4
dll Error 1
Using app.config from both the exe and a dll 10
Dll conflict 2

Back
Top