Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The explicit binding redirect conflicts with an autogenerated binding redirect

I am receiving the following warning when I build my solution:

The explicit binding redirect on "Microsoft.Azure.Documents.Client, Culture=neutral, PublicKeyToken=31bf3856ad364e35" conflicts with an autogenerated binding redirect. Consider removing it from the application configuration file or disabling autogenerated binding redirects. The build will replace it with: "< bindingRedirect oldVersion="0.0.0.0-1.22.0.0" newVersion="1.22.0.0" xmlns="urn:schemas-microsoft-com:asm.v1" />"

However, my app.config file in the project is only the following, without any explicit assembly binding redirects:

<configuration></configuration>

Why is there a conflict if I do not have any explicit binding redirects? My csproj file does not have any mention of AutoGenerateBindingRedirects, for the record.

like image 914
BlueTriangles Avatar asked Sep 05 '18 23:09

BlueTriangles


1 Answers

I had a similar issue, the sequence that fixed it for me was:

  1. Remove problematic dependency entry from App.config
  2. Un-check Auto-generate binding redirects from project properties
  3. Uninstall & Reinstall nuget package that required the dependency
  4. In my case, it prompted me to now re-check the Auto-generate binding redirects in my project properties.
like image 188
cobbs_jobs Avatar answered Sep 25 '22 14:09

cobbs_jobs