taxjar / taxjar.net

Sales Tax API Client for .NET / C#
https://developers.taxjar.com/api/reference/?csharp
MIT License
23 stars 23 forks source link

Cannot run with Newtonsoft.Json version 13 #54

Open davidcchase opened 2 years ago

davidcchase commented 2 years ago

TaxJar version 3.3.2 in NuGet requires Newtonsoft.Json minimum version 12.0.3 (if I'm reading the NPM description properly). I have Newtonsoft.Json v 13.0.1 already installed and I'm getting "Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0....The located assembly's manifest definition does not match the assembly reference" when I call a TaxJar method at runtime.

I've tried downgrading Newtonsoft to v12, which works for this problem but causes others which depend on v13.

Can TaxJar be updated to accept Newtonsoft.Json 13?

Thanks, Dave

iNetDaniel commented 2 months ago

In the web.config or app.config you can set the runtime so that older assembly references get bumped to the one referenced by the project.

`<?xml version="1.0" encoding="utf-8"?>

`