Found conflicts between different versions of the same dependent assembly

10 Nov

warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.

First of all Change build log verbosity to detailed. This is done by changing the value for Tools>Options>Project and Solutions>Build and Run>MSBuild project outbut verbosity to detailed.

After that you can rebuild the solution. During build time MSBuild writes a lot of information to the Output-View. After build completition you have to search the whole log file for the corresponding assembly conflict. You can do this by using CTRL+F to open the search-view, entering “conflict” and hitting the search button. Visual Studio highlights all corresponding matches. Search for a message that states a sentence like the following:

There was a conflict between “System.Windows.Interactivity, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35” and “System.Windows.Interactivity, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35”.
“System.Windows.Interactivity, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35” was chosen because it was primary and “System.Windows.Interactivity, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35” was not.

Just remove the reference to the wrong assembly from the current built project System.Windows.Interactivity, Version= and add the reference to the correct assembly System.Windows.Interactivity, Version= and the warning is gone when you build the Project the next time.

After that you are free to change the build verbosity back to the previous value.


Posted by on November 10, 2014 in C-Sharp


Tags: ,

3 responses to “Found conflicts between different versions of the same dependent assembly

  1. Julie Lerman

    October 17, 2015 at 22:41

    Thanks for this post!

  2. Christopher Hallam

    October 21, 2015 at 16:15

    Michael, thanks for this post. Where do I find the MSBuild log file?

    • Michael Mairegger

      October 21, 2015 at 16:19

      You find the build log in the Output-Window of Visual Studio. The select “Show Output from: Build” if not selected.


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: