PackageReference Redirect underlying package?

0

I'm using a NuGet package (IdentityModel.OidcClient 3.1.2) and this throws an error

Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

The version in the bin folder is Newtonsoft.Json.dll v11.0.2.xx

So I probably need a binding redirect for the underlying package Newtonsoft.Json.dll, but where do I put that redirect? Tried AutoGenerateBindingRedirects=true but that didn;t solve it.

nuget
assembly-binding-redirect
packagereference
asked on Stack Overflow Apr 6, 2020 by gjvdkamp

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0