Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit c649c25

Browse files
committed
Add binding redirect for Newtonsoft.Json...
...in UnitTests. Akavache uses Newtonsoft.Json 6.0.8 while we use 10.0.3. The earlier version needs to be redirected to the later version for tests to work.
1 parent b0265e2 commit c649c25

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

test/UnitTests/UnitTests.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,9 @@
379379
<None Include="packages.config">
380380
<SubType>Designer</SubType>
381381
</None>
382+
<None Include="UnitTests.dll.config">
383+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
384+
</None>
382385
</ItemGroup>
383386
<ItemGroup>
384387
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<runtime>
4+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
5+
<dependentAssembly>
6+
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30AD4FE6B2A6AEED" culture="neutral"/>
7+
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0"/>
8+
</dependentAssembly>
9+
</assemblyBinding>
10+
</runtime>
11+
</configuration>

0 commit comments

Comments
 (0)