467,915 Members | 1,557 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

Error: The dependency in cannot be copied...(references in vs.net2

Within my group of developers we have a list of library components we develop
and continuously enhance and upgrade. We don't have source control (that's a
bit of a sore issue for me) but when an update is made to a library .dll we
put these out in a released directory where all of our other
solutions/projects reference these "released" .dll's. These assemblies are
referenced directly to the assembly files themselves from other projects, not
the projects they are developed in. This causes the following problems and
is very frustrating.

We always have a versioning problem with VS.NET 2003. If we change the
version of these released library .dll's VS.NET always gives this error:

Error: The dependency in 'ASSEMBLY NAME' cannot be copied to the run
directory because it would conflict with dependency version 'OLD VERSION'

Involving overwriting the old version with the new version in the \bin

If the changes we put into one of these "released" library .dll's break's
other code, we don't care and just want all of our projects to be compliant
with the new library code changes.

I've tried deleting all the files in the \bin directory, that doesn't work.
It seems I've tried everything and can't get this error resolved. I end up
going back and hard coding in the version number to it's original! This is
not acceptable, because then we are releying in time/date to be sure the
application has the most recent .dll.

I know that referencing a project will solve this but I can't do it that way
because the projects are often in test mode and aren't "cleared" until the
actual build is done and the .dll is put in the released directory. Any
suggestions would be greatly appreciated.

Jul 21 '05 #1
  • viewed: 1220

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Alex Campos | last post: by
reply views Thread by Just Me | last post: by
6 posts views Thread by tony | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.