Using a Newtonsoft.JSON DLL in multpiple projects
When building a Visual Studio solution, I had the problem that I got a
TargetInvocationException when calling a method from a referenced DLL file. When running the unit tests on the DLL file, everything seemed to work fine and I could not track down the problem. The inner exception of the exception brought me then on the right track: The Newtonsoft.JSON module was installed in different versions across each DLL file and the main project.
' Write the exception to the console.
response = Await client.Login("a", "b")
Catch ex As Exception
PM> Update-Package Newtonsoft.JSON -reinstall
PM> Update-Package Newtonsoft.JSON