Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compile Warning?
Message
From
29/01/2004 11:55:17
 
 
To
28/01/2004 20:56:11
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00871476
Message ID:
00871852
Views:
14
Keith,

Thanks for the reply. I had tried to remove the references from my project and recompile but still got the warning, however you helped me believe I was on the right track.

The problem I discovered is,I have references to two assemblies not in my main project that have classes derived from a third assembly that is also referenced directly from my project. I discovered that if I make a change to the third assemble, baseclass to the other two, I must recompile all assemblies so there respective local copy of the baseclass is the same.

VS attempts to copy ALL the “local” dependent assemblies from each of the referenced assemblies to a dir of the project being compiled and if different versions of the same assembly are encountered then the overwrite warning is generated.

Bottom line, if the property copy local is True and I make changes to a baseclass assemble, I must recompile all assemblies that are referenced in my project that are derived from, or have a reference to the same baseclass. This will ensure that each assemblies will have the same local copy of the baseclass.


Regards,

Terry Carroll







>Terry,
>
>It sounds like you have 2 projects referencing different versions of the same DLL, both sharing the same bin directory with the Copy Local reference property set to True. Try removing and re-establishing the references to mxBaseClass in each project and then Re-build the entire solution.
>
>>I have had the following compile warning appear for some time but have not given it much thought because my app compiles and seems to work. Now I want to know what I need to do to correct the problem. Any ideas?
>>
>>
>>Preparing resources...
>>Updating references...
>>
>>Warning: The dependency 'mxBaseClass, Version=1.0.1446.17701,
>>Culture=neutral' in project 'MCB' cannot be copied to the run directory
>>because it would overwrite the reference 'mxBaseClass,
>>Version=1.0.1488.21503, Culture=neutral'.
>>
>>Performing main compilation...
>>Building satellite assemblies...
>>
>>
>>
>>Terry Carroll
Previous
Reply
Map
View

Click here to load this message in the networking platform