Solved

Found conflicts between different versions of the same dependent

Posted on 2010-11-30
2
606 Views
Last Modified: 2013-11-07
I am working on VS2008 C#.

Every time when I make the build I am getting the warning "Found conflicts between different versions of the same dependent ".

I clicked "Yes" when I got the prompt "Do you want to fix these conflicts by adding binding redirect records in the app.config file?" while compiling my class library project. However, nothing was added to app.config.

Can anyone help me in this regard?
0
Comment
Question by:GouthamAnand
2 Comments
 
LVL 4

Accepted Solution

by:
ricovox earned 500 total points
ID: 34242412
Try the following link.
http://stackoverflow.com/questions/895746/help-found-conflicts-between-different-versions-of-the-same-dependent-assembly

Here is a quote from the answer:

Basically this happens when the assemblies you're referencing have "Copy Local" set to "True", meaning that a copy of the DLL is placed in the bin folder along with your exe.

Since Visual Studio will copy all of the dependencies of a referenced assembly as well, it's possible to end up with two different builds of the same assembly being referred to. This is more likely to happen if your projects are in separate solutions, and can therefore be compiled separately.

The way I've gotten around it is to set Copy Local to False for references in assembly projects. Only do it for executables/web applications where you need the assembly for the finished product to run.
0
 

Author Closing Comment

by:GouthamAnand
ID: 34322213
Thanks a lot
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now