Hi,
IONAPITestInvoke form Visual Basic script has reference to Newtonsoft.Json.
However why I try using Newtonsoft.Json in C# script it gives error.
How can i use Newtonsoft.Json in C# script?
Thanks,
Kirill
I think References won't work on MG script editor (even if set to MS Studio); use Ref tag (MG specific)
In Visual Studio, you need to ensure that Newtonsoft.Json is listed under Solutions Explorer -> References . If it isn't, you would need to use the NuGet Package Manager to install it.
Hi Mark,
Thanks for prompt response.
I set VS2019 as Script Editor in User preferences.
Installed Newtonsoft.Json
However after I save my script and close Visual Studio, and then open script to edit again, the reference to Newtonsoft.Json is gone.
How do I save it permanently, and can I edit script in Mongoose WinStudio and have Newtonsoft reference working?
<Ref> tag gives error
' and // are there for a reason - to comment out an invalid vb/c# code ...<ref></ref> is not valid syntax, just MG specific to allow references to be added.