开发者

vs2003: problem with building solution

when I try to build the solution with many projects, i get the following error:

Error: The dependency 'myproject1.myproject2, Version=1.0.3799.25569, Culture=neutral' in project 'myproject3.myproject4' cannot be copied to the run directory because it would conflict开发者_Python百科 with dependency 'myproject1.myproject2, Version=1.0.3841.15015, Culture=neutral'.

What should I do? I have deleted all the binaries under the bin folder for all the projects and rebuilt but this error will not go away. Please help.


An easy fix should be to set the "Copy Local" property of the Reference dll in question to "false". This will stop VS from trying to copy an older dll to a place that has a newer dll.

The harder but more correct solution would be to check why you are using two different versions of the same dll. Perhaps you should remove the reference from your project myproject3.myproject4, rebuild your myproject1.myproject2, then add the newly built dll to your rpoject.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜