Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 687
  • Last Modified:

Found conflicts between different versions of the same dependent

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
GouthamAnand
Asked:
GouthamAnand
1 Solution
 
ricovoxCommented:
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
 
GouthamAnandAuthor Commented:
Thanks a lot
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now