I have some simple Json code (10 lines) which was working under 8.0.23.2 but now in 8.0.24.0 fails to compile with a variety of errors. The code has been stable for a long time and has not changed. Commenting out the code makes the compilation work.
Here is a list of the errors:
[TABLE="width: 1123"] [TR] [TD][SIZE=15px][COLOR=black][FONT=Calibri]The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.[/FONT][/COLOR][/SIZE][/TD] [/TR] [TR] [TD][SIZE=15px][COLOR=black][FONT=Calibri]The type 'System.IDisposable' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.[/FONT][/COLOR][/SIZE][/TD] [/TR] [TR] [TD][SIZE=15px][COLOR=black][FONT=Calibri]The type 'System.IO.TextWriter' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.[/FONT][/COLOR][/SIZE][/TD] [/TR] [TR] [TD][SIZE=15px][COLOR=black][FONT=Calibri]The best overloaded method match for 'Newtonsoft.Json.JsonTextWriter.JsonTextWriter(Sys tem.IO.TextWriter)' has some invalid arguments[/FONT][/COLOR][/SIZE][/TD] [/TR] [TR] [TD][SIZE=15px][COLOR=black][FONT=Calibri]Argument 1: cannot convert from 'System.IO.StreamWriter' to 'System.IO.TextWriter'[/FONT][/COLOR][/SIZE][/TD] [/TR] [TR] [TD][SIZE=15px][COLOR=black][FONT=Calibri]'Newtonsoft.Json.JsonWriter': type used in a using statement must be implicitly convertible to 'System.IDisposable'[/FONT][/COLOR][/SIZE][/TD] [/TR] [TR] [TD][SIZE=15px][COLOR=black][FONT=Calibri]The type 'System.IO.TextReader' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.[/FONT][/COLOR][/SIZE][/TD] [/TR] [TR] [TD][SIZE=15px][COLOR=black][FONT=Calibri]The best overloaded method match for 'Newtonsoft.Json.JsonTextReader.JsonTextReader(Sys tem.IO.TextReader)' has some invalid arguments[/FONT][/COLOR][/SIZE][/TD] [/TR] [TR] [TD][SIZE=15px][COLOR=black][FONT=Calibri]Argument 1: cannot convert from 'System.IO.StreamReader' to 'System.IO.TextReader'[/FONT][/COLOR][/SIZE][/TD] [/TR] [TR] [TD][SIZE=15px][COLOR=black][FONT=Calibri]The type 'System.Type' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.[/FONT][/COLOR][/SIZE][/TD] [/TR] [TR] [TD][SIZE=15px][COLOR=black][FONT=Calibri]The best overloaded method match for 'Newtonsoft.Json.JsonSerializer.Deserialize(Newton soft.Json.JsonReader, System.Type)' has some invalid arguments[/FONT][/COLOR][/SIZE][/TD] [/TR] [TR] [TD][SIZE=15px][COLOR=black][FONT=Calibri]Argument 2: cannot convert from 'System.Type [c:\Windows\Microsoft.NET\Framework64\v4.0.30319\ms corlib.dll]' to 'System.Type'[/FONT][/COLOR][/SIZE][/TD] [/TR] [TR] [TD][SIZE=15px][COLOR=black][FONT=Calibri]'Newtonsoft.Json.JsonReader': type used in a using statement must be implicitly convertible to 'System.IDisposable'[/FONT][/COLOR][/SIZE][/TD] [/TR] [/TABLE]
I have a reference to C:\Program Files (x86)\NinjaTrader 8\bin64\Newtonsoft.Json.dll and up until this release this has been all that was needed.
Grateful for advice on getting this compilation to behave correctly.
Thanks.
Comment