Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Core - MSB3277: Found conflicts between different versions

I am having difficulty getting rid of the build warning:

warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved

specifically in .NET core projects.

In a full .NET framework project I would add some binding redirects so I googled around that issue and found this answer suggesting adding the following to the .csproj file:

<PropertyGroup>
  <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
  <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>

I have done this but to no avail - I still get the build warnings. Anything else I can do?

like image 541
Stewart_R Avatar asked Aug 02 '17 19:08

Stewart_R


1 Answers

I had a look at your project and the problem seems to be a conflict with the versions that Rssdp was built against and the assembly version that the referenced System.Net.Http version (4.3.0) provides as compile-time reference.

This can be fixed by updating System.Net.Http to 4.3.2.

<PackageReference Include="System.Net.Http" Version="4.3.2"/>
like image 175
Martin Ullrich Avatar answered Nov 02 '22 23:11

Martin Ullrich