Solved

Found conflicts between different versions of the same dependent

Posted on 2010-11-30
2
595 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 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

20 Experts available now in Live!

Get 1:1 Help Now