Warning???

  • Thread starter Thread starter web1110
  • Start date Start date
W

web1110

Can anyone explain this message to me?

Warning: The dependency 'CLFormManager, Version=1.0.1900.31178,
Culture=neutral' in project 'FRMLogon' cannot be copied to the run directory
because it would overwrite the reference 'CLFormManager,
Version=1.0.1900.31236, Culture=neutral'.
 
This happens when you have a project A that uses projects B and C. And
project B happens to reference C as well.

C has auto version generation, which gets upped in every recompile.

The last time you compiled B, you used one version of C, but you since
recompiled C, and now A is using a different version. So you get this.

2 ways to solve it:
1. set CopyLocal to False on the project references
2. Hard code a version for C. Something like 1.0.0.0, or whatever you like.
 
You can also solve it by referencing projects in your solution rather than
compiled DLLs.

--Bob
 

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

Back
Top