Skip to content

Commit

Permalink
Fix up #rs
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Jan 5, 2022
1 parent 40dc2e5 commit 21172cd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/FsCodec.NewtonsoftJson/Serdes.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ open System.Runtime.InteropServices
/// Serializes to/from strings using the supplied Settings
type Serdes(options : JsonSerializerSettings) =

/// <summary>The <c>Settings</c> used by this instance.</summary>
/// <summary>The <c>JsonSerializerSettings</c> used by this instance.</summary>
member _.Options : JsonSerializerSettings = options

/// Serializes given value to a JSON string.
Expand Down
11 changes: 11 additions & 0 deletions tests/FsCodec.NewtonsoftJson.Tests/Examples.fsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
// Compile the fsproj by either a) right-clicking or b) typing
// dotnet build tests/FsCodec.NewtonsoftJson.Tests before attempting to send this to FSI with Alt-Enter

#if USE_LOCAL_BUILD
#I "bin/Debug/net5.0"
#r "FsCodec.dll"
#r "Newtonsoft.Json.dll"
#r "FsCodec.NewtonsoftJson.dll"
#r "TypeShape.dll"
#r "FSharp.UMX.dll"
#r "Serilog.dll"
#r "Serilog.Sinks.Console.dll"
#else
#r "nuget: FsCodec.NewtonsoftJson"
#r "nuget: Serilog.Sinks.Console"
#endif

open FsCodec.NewtonsoftJson
open Newtonsoft.Json
Expand Down
6 changes: 4 additions & 2 deletions tests/FsCodec.SystemTextJson.Tests/Examples.fsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
// Compile the fsproj by either a) right-clicking or b) typing
// dotnet build tests/FsCodec.SystemTextJson.Tests before attempting to send this to FSI with Alt-Enter

#if USE_LOCAL_BUILD
(* Rider's FSI is not happy without the explicit references :shrug: *)

#I "bin/Debug/net5.0"
#r "FsCodec.dll"
//#r "System.Text.Json.dll" // Does not work atm :(
#r "FsCodec.SystemTextJson.dll"
#r "TypeShape.dll"
#r "FSharp.UMX.dll"
#r "Serilog.dll"
#r "Serilog.Sinks.Console.dll"

#else
#r "nuget: FsCodec.SystemTextJson"
#r "nuget: Serilog.Sinks.Console"
#endif

open FsCodec.SystemTextJson
open System.Text.Json
Expand Down

0 comments on commit 21172cd

Please sign in to comment.