Skip to content

Commit 21172cd

Browse files
committed
Fix up #rs
1 parent 40dc2e5 commit 21172cd

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

src/FsCodec.NewtonsoftJson/Serdes.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ open System.Runtime.InteropServices
66
/// Serializes to/from strings using the supplied Settings
77
type 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.

tests/FsCodec.NewtonsoftJson.Tests/Examples.fsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
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

718
open FsCodec.NewtonsoftJson
819
open Newtonsoft.Json

tests/FsCodec.SystemTextJson.Tests/Examples.fsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
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

1719
open FsCodec.SystemTextJson
1820
open System.Text.Json

0 commit comments

Comments
 (0)