File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed
src/FsCodec.NewtonsoftJson
FsCodec.NewtonsoftJson.Tests
FsCodec.SystemTextJson.Tests Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ open System.Runtime.InteropServices
66/// Serializes to/from strings using the supplied Settings
77type Serdes ( options : JsonSerializerSettings ) =
88
9- /// <summary>The <c>Settings </c> used by this instance.</summary>
9+ /// <summary>The <c>JsonSerializerSettings </c> used by this instance.</summary>
1010 member _.Options : JsonSerializerSettings = options
1111
1212 /// Serializes given value to a JSON string.
Original file line number Diff line number Diff line change 11// Compile the fsproj by either a) right-clicking or b) typing
22// dotnet build tests/FsCodec.NewtonsoftJson.Tests before attempting to send this to FSI with Alt-Enter
33
4+ #if USE_ LOCAL_ BUILD
5+ #I " bin/Debug/net5.0"
6+ #r " FsCodec.dll"
7+ #r " Newtonsoft.Json.dll"
8+ #r " FsCodec.NewtonsoftJson.dll"
9+ #r " TypeShape.dll"
10+ #r " FSharp.UMX.dll"
11+ #r " Serilog.dll"
12+ #r " Serilog.Sinks.Console.dll"
13+ #else
414#r " nuget: FsCodec.NewtonsoftJson"
515#r " nuget: Serilog.Sinks.Console"
16+ #endif
617
718open FsCodec.NewtonsoftJson
819open Newtonsoft.Json
Original file line number Diff line number Diff line change 11// Compile the fsproj by either a) right-clicking or b) typing
22// dotnet build tests/FsCodec.SystemTextJson.Tests before attempting to send this to FSI with Alt-Enter
33
4+ #if USE_ LOCAL_ BUILD
45(* Rider's FSI is not happy without the explicit references :shrug: *)
5-
66#I " bin/Debug/net5.0"
77#r " FsCodec.dll"
8+ //#r "System.Text.Json.dll" // Does not work atm :(
89#r " FsCodec.SystemTextJson.dll"
910#r " TypeShape.dll"
1011#r " FSharp.UMX.dll"
1112#r " Serilog.dll"
1213#r " Serilog.Sinks.Console.dll"
13-
14+ #else
1415#r " nuget: FsCodec.SystemTextJson"
1516#r " nuget: Serilog.Sinks.Console"
17+ #endif
1618
1719open FsCodec.SystemTextJson
1820open System.Text .Json
You can’t perform that action at this time.
0 commit comments