Why is my data library constantly out of sync?

G

Guest

I have a WinForms app in which I have several data object libraries. One of
them is called "DataObjects" (excuse the unoriginality of my naming!).
Anyhow, I keep on getting messages like this when I compile my main app:

Warning: The dependency 'DataObjects, Version=1.0.2127.16824,
Culture=neutral' in project 'Desktop' cannot be copied to the run directory
because it would overwrite the reference 'DataObjects,
Version=1.0.2127.17324, Culture=neutral'.


Why does this happen and how I can resolve it? Note: My app still compiles
but I'm getting worried that I've done something wrong to cause this to
happen.
 
P

Paul E Collins

Robert W. said:
I keep on getting messages like this when I compile my main app:
Warning: The dependency 'DataObjects, Version=1.0.2127.16824,
Culture=neutral' in project 'Desktop' cannot be copied to the run
directory because it would overwrite the reference 'DataObjects,
Version=1.0.2127.17324, Culture=neutral'.

If your solution contains more than one project that references
DataObjects, try removing and re-adding the reference for each project
(and preferably refer to the DataObjects project itself, and not a
compiled DLL which may be deleted or replaced later).

The error you describe can happen when two distinct versions of a
single project are referenced within one solution: Visual Studio can't
output the two resulting files to a single filename.

P.
 

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