reference dependency warnings during build

M

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
 
M

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.
 
A

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.
 
M

Marina

Haven't encountered any issues yet doing that.

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

Alan.
 

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