Incompatibility between System.Reactive.Core and System.Reactive.Windows.Threading 3.1.1 NuGet packages #305
Description
I might be wrong, but I believe there's an incompatibility between the System.Reactive.Core and System.Reactive.Windows.Threading 3.1.1 NuGet packages
- https://www.nuget.org/packages/System.Reactive.Core/3.1.1
- https://www.nuget.org/packages/System.Reactive.Windows.Threading/3.1.1
Projects in my solution reference both System.Reactive.Core
and System.Reactive.Windows.Threading
. I extracted the assemblies from the NuGet packages. When I build my solution, it gives a build warning:
warning MSB3276: Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190
With diagnostic logging on it gave a bit more information:
There was a conflict between "System.Reactive.Core, Version=3.0.3000.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263" and "System.Reactive.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263".
"System.Reactive.Core, Version=3.0.3000.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263" was chosen because it was primary and "System.Reactive.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263" was not.
References which depend on "System.Reactive.Core, Version=3.0.3000.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263" [C:\bin\System.Reactive.Core.dll].
C:\bin\System.Reactive.Core.dll
Project file item includes which caused reference "C:\bin\System.Reactive.Core.dll".
System.Reactive.Linq
References which depend on "System.Reactive.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263" [].
C:\bin\System.Reactive.Windows.Threading.dll
Project file item includes which caused reference "C:\bin\System.Reactive.Windows.Threading.dll".
System.Reactive.Windows.Threading
At runtime it gives this error:
Could not load file or assembly 'System.Reactive.Core, Version=3.0.1000.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)