Currently, the minimum supported version of Newtonsoft.Json is 5.0.5. This compiles, but when using gives an error:
Unhandled Exception: System.TypeInitializationException:
The type initializer for 'TimeZoneNames.TZNames' threw an exception.
---> System.MissingMethodException: Method not found: 'Newtonsoft.Json.JsonSerializer Newtonsoft.Json.JsonSerializer.CreateDefault()'.
at TimeZoneNames.TimeZoneData.Load()
at TimeZoneNames.TZNames..cctor()
--- End of inner exception stack trace ---
at TimeZoneNames.TZNames.GetLanguageKey(String languageCode)
at TimeZoneNames.TZNames.GetCountryNames(String languageCode)
Updating Newtonsoft.Json to 6.0.1 or higher resolves the problem. The next release should increase the minimum dependency, or otherwise work around this issue.
Currently, the minimum supported version of
Newtonsoft.Json
is 5.0.5. This compiles, but when using gives an error:Updating
Newtonsoft.Json
to 6.0.1 or higher resolves the problem. The next release should increase the minimum dependency, or otherwise work around this issue.