Home All Groups Group Topic Archive Search About

reference dependency warnings during build

Author
30 Jun 2005 2:21 PM
marfi95
In the project I'm working on, I have a reference to another project of
mine that is the base class objects for my system.  The problem I have
is that when I build my project, it compiles, but I get following
warning:

Warning: The dependency 'Intface1, Version=1.0.2006.32652,
Culture=neutral' in project 'Project1' cannot be copied to the run
directory because it would overwrite the reference 'Intface1,
Version=1.0.2007.12912, Culture=neutral'.

Here is the thing though:

The version on the reference in the project is the .2007 version.  I've
looked at the version #'s on all the files and they are all the .2007
version.  I can't find anywhere on my drive where this .2006 version is
coming from.  I also looked in the registry.

Where in the world is this coming from ?

Thanks,
Mark

Author
30 Jun 2005 2:25 PM
Marina
Probably another DLL that you are also referencing, that also points to
Project1. And that DLL was compiled when Project1 still had a build of
..2006.

I have 2 suggestions:

1. Fix the version number of your DLL's, and update them only during version
upgrades of your application
2. set CopyLocal to False on all your references.

<marf***@yahoo.com> wrote in message
Show quoteHide quote
news:1120141308.077537.309780@g14g2000cwa.googlegroups.com...
> In the project I'm working on, I have a reference to another project of
> mine that is the base class objects for my system.  The problem I have
> is that when I build my project, it compiles, but I get following
> warning:
>
> Warning: The dependency 'Intface1, Version=1.0.2006.32652,
> Culture=neutral' in project 'Project1' cannot be copied to the run
> directory because it would overwrite the reference 'Intface1,
> Version=1.0.2007.12912, Culture=neutral'.
>
> Here is the thing though:
>
> The version on the reference in the project is the .2007 version.  I've
> looked at the version #'s on all the files and they are all the .2007
> version.  I can't find anywhere on my drive where this .2006 version is
> coming from.  I also looked in the registry.
>
> Where in the world is this coming from ?
>
> Thanks,
> Mark
>
Author
30 Jun 2005 3:17 PM
alantolan
>2. set CopyLocal to False on all your references.

We are having similar problems and this seems (to me) to be a good
solution.
Are there any notable problems with it?

Alan.
Author
30 Jun 2005 4:03 PM
Marina
Haven't encountered any issues yet doing that.

<alanto***@users.com> wrote in message
Show quoteHide quote
news:1120144637.103936.49210@g44g2000cwa.googlegroups.com...
> >2. set CopyLocal to False on all your references.
>
> We are having similar problems and this seems (to me) to be a good
> solution.
> Are there any notable problems with it?
>
> Alan.
>